[Libwebsockets] One thread for initializing and reading, another for writing

MAHE Aubin aubin.mahe at fr.thalesgroup.com
Wed Sep 30 14:28:20 CEST 2015


Hi All,

I use a thread for reading on libwebsockets and another one for writing.

More precisely, the first thread is dedicated to:
	libwebsocket_create_context()
	libwebsocket_service()
	libwebsocket_callback_on_writable_all_protocol()
	http and user callbacks defined in struct libwebsocket_protocols

The second thread uses only libwebsocket_write().

Is this practice safe?

Thanks and Regards
Aubin



More information about the Libwebsockets mailing list