lpcmanager
Clone
Summary
Browse
Changes
Graph
Change back function _Build that run on main thread beacuse when it run on new thread python stop working
WAMP_API_1.2
2017-06-16, agregorcic
09ef5d8afdf8
Change back function _Build that run on main thread beacuse when it run on new thread python stop working
if(!rt_mutex_acquire(&UART_WriteMutex, TM_INFINITE )){
int prevstate;
prevstate=uartDevWriteBuf_plc_state;
uartDevWriteBuf_plc_state = LOCKED;
rt_mutex_release(&UART_WriteMutex);
%(publish_code)s
/* unlock plc buffer */
uartDevWriteBuf_plc_state = FULL;
/* wakeup task */
rt_task_unblock(&UART_task);
}