[Libwebsockets] libwebsocket thread safe?

Jeffrey Zhao chunyong.zhao at qq.com
Fri Apr 10 02:30:24 CEST 2015


Dear sir
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...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20150410/76cd550c/attachment-0001.html>


More information about the Libwebsockets mailing list