[Libwebsockets] libwebsocket LWS_CALLBACK_GET_THREAD_ID

Micka mickamusset at gmail.com
Mon May 26 08:53:37 CEST 2014


Hi,

I wanted to know if it's normal that in my protocol function I received a
lot of LWS_CALLBACK_GET_THREAD_ID

It happens all the time .....


that is my return :

return pthread_self();

And I don't use that :
/*
 * if you will call "libwebsocket_callback_on_writable"
 * from a different thread, return the caller thread ID
 * here so lws can use this information to work out if it
 * should signal the poll() loop to exit and restart early
 */


Thx,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20140526/737fc0fb/attachment.html>


More information about the Libwebsockets mailing list