1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib
Andy Green 74fddbc09e cancel_service: change to event-loop agnostic implementation
- Add platform helpers for pipe creation.

 - Change the direct-to-fds implementation to create a wsi for each
   pt and use the normal apis to bind it to the event loop.

 - Modifiy context creation and destroy to create and remove the
   event pipe wsis.

 - Create the event pipe wsis during context create if using the
   default poll() event loop, or when the other event loops start
   otherwise.

 - Add handler that calls back user code with
   LWS_CALLBACK_EVENT_WAIT_CANCELLED

This patch allows you to call `lws_cancel_service(struct lws_context *context)`
from another thread.

It's very cheap for the other thread to call and is safe without
locking.

Every use protocol receives a LWS_CALLBACK_EVENT_WAIT_CANCELLED from
the main thread serialized normally in the event loop.
2017-11-26 19:16:17 +08:00
..
client build: enable signed vs unsigned warnings on gcc 2017-10-25 07:17:29 +08:00
event-libs cancel_service: change to event-loop agnostic implementation 2017-11-26 19:16:17 +08:00
ext build: enable signed vs unsigned warnings on gcc 2017-10-25 07:17:29 +08:00
http2 hpack: pseudoheader check improvement 2017-11-10 11:01:25 +08:00
jws RFC7638: JWK thumbprint 2017-11-26 19:07:12 +08:00
misc lws_genhash: add HMAC 2017-11-10 16:56:44 +08:00
plat cancel_service: change to event-loop agnostic implementation 2017-11-26 19:16:17 +08:00
server client-cert-required 2017-11-26 19:16:17 +08:00
tls lws-genrsa: add resuable backend-independent rsa decrypt in tls/ and migrate sshd to it 2017-11-10 16:56:44 +08:00
alloc.c http2: make usable 2017-10-16 17:13:49 +08:00
context.c cancel_service: change to event-loop agnostic implementation 2017-11-26 19:16:17 +08:00
handshake.c http2: make usable 2017-10-16 17:13:49 +08:00
header.c http2: make usable 2017-10-16 17:13:49 +08:00
lextable-strings.h http2: make usable 2017-10-16 17:13:49 +08:00
lextable.h http2: make usable 2017-10-16 17:13:49 +08:00
libwebsockets.c cancel_service: change to event-loop agnostic implementation 2017-11-26 19:16:17 +08:00
libwebsockets.h cancel_service: change to event-loop agnostic implementation 2017-11-26 19:16:17 +08:00
minilex.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
output.c h2: never send more than file length 2017-11-10 10:59:58 +08:00
pollfd.c cancel_service: change to event-loop agnostic implementation 2017-11-26 19:16:17 +08:00
private-libwebsockets.h cancel_service: change to event-loop agnostic implementation 2017-11-26 19:16:17 +08:00
service.c cancel_service: change to event-loop agnostic implementation 2017-11-26 19:16:17 +08:00