lpcmanager
Clone
Summary
Browse
Changes
Graph
Update IEC60870 files to accommodate multiple common addresses on same server instance
py2compat
2 weeks ago, Dino Kosic
a03f3c87d03c
Update IEC60870 files to accommodate multiple common addresses on same server instance
if(!pthread_mutex_lock(&UART_ReadMutex)){
int prevstate;
if((prevstate=uartDevReadBuf_plc_state) == FULL){
uartDevReadBuf_plc_state = LOCKED;
}
pthread_mutex_unlock(&UART_ReadMutex);
if(prevstate == FULL){
%(retrieve_code)s
/* unlock plc buffer */
uartDevReadBuf_plc_state = EMPTY;
}else{
/* No new data -> no update */
}
}