libwebsockets/lib
Andy Green 7a1327977a add locking callback for fds
This adds two new callbacks in protocols[0] that are optional for allowing limited thread
access to libwebsockets, LWS_CALLBACK_LOCK_POLL and LWS_CALLBACK_UNLOCK_POLL.

If you use them, they protect internal and external poll list changes, but if you want to use
external thread access to libwebsocket_callback_on_writable() you have to implement your
locking here even if you don't use external poll support.

If you will use another thread for this, take a lot of care about managing your list of
live wsi by doing it from ESTABLISHED and CLOSED callbacks (with your own locking).

Signed-off-by: Andy Green <andy.green@linaro.org>
2013-12-18 09:48:26 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
base64-decode.c remove bae64 decode and selftest 2013-09-18 20:57:59 +08:00
client-handshake.c make header protection unique remove __prefix 2013-10-26 20:23:00 +08:00
client-parser.c reflect send completeness in lws_write return 2013-02-23 10:50:10 +08:00
client.c add locking callback for fds 2013-12-18 09:48:26 +08:00
daemonize.c Hide private library symbols 2013-03-30 09:52:21 +08:00
extension-deflate-frame.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-frame.h Separate compression levels for server and client, 2013-01-10 12:45:54 +08:00
extension-deflate-stream.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-stream.h remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
extension.c Hide private library symbols 2013-03-30 09:52:21 +08:00
getifaddrs.c style cleanup 2013-02-11 17:13:32 +08:00
getifaddrs.h make header protection unique remove __prefix 2013-10-26 20:23:00 +08:00
handshake.c solve broken partial file sends 2013-12-09 11:27:07 +08:00
lextable.h Support for HTTP POST. 2013-11-24 10:36:37 +08:00
libwebsockets.c add locking callback for fds 2013-12-18 09:48:26 +08:00
libwebsockets.h add locking callback for fds 2013-12-18 09:48:26 +08:00
minilex.c Support for HTTP POST. 2013-11-24 10:36:37 +08:00
output.c NO_EXTENSIONS fixes 2013-12-10 21:15:00 +08:00
parsers.c Support for HTTP POST. 2013-11-24 10:36:37 +08:00
private-libwebsockets.h Optionally allow non-SSL connections on same port as SSL 2013-12-14 11:41:29 +08:00
server-handshake.c reflect send completeness in lws_write return 2013-02-23 10:50:10 +08:00
server.c add locking callback for fds 2013-12-18 09:48:26 +08:00
sha-1.c Support _WIN32 in addition to WIN32 define 2013-11-04 10:04:31 +08:00