[Libwebsockets] libwebsocket thread safe?
chunyong.zhao at qq.com
Fri Apr 10 02:30:24 CEST 2015
If I use one dedicated ws thread to create libwebsocket context and run libwebsocket_service() loop with maximum timeout value.
In this case,
1. Will there be new thread(s) created within libwebsocket itself?
2. Is all callback functions(maybe triggered by different wsi) are processed in sequence, not in parrarell?
3. To write data to ws client, is it safe to let another thread to call libwebsocket_callback_on_writable() to the same context created by the dedicated ws thread? Will there be any problem?
thank you very much!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets