1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/plugins
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
..
generic-sessions coverity-fixes 2017-11-10 10:59:58 +08:00
generic-table build: enable signed vs unsigned warnings on gcc 2017-10-25 07:17:29 +08:00
ssh-base lws-genrsa: add resuable backend-independent rsa decrypt in tls/ and migrate sshd to it 2017-11-10 16:56:44 +08:00
lwsws-logo.png http cache policy 2016-04-22 08:53:49 +08:00
protocol_client_loopback_test.c gcc- format strings: debug and extra plugins 2017-02-05 22:30:27 +08:00
protocol_dumb_increment.c http2: make usable 2017-10-16 17:13:49 +08:00
protocol_esp32_lws_group.c plugins: group 2017-05-16 20:21:47 +08:00
protocol_esp32_lws_ota.c http2: make usable 2017-10-16 17:13:49 +08:00
protocol_esp32_lws_reboot_to_factory.c esp32: separate factory setup 2017-03-31 20:05:10 +08:00
protocol_esp32_lws_scan.c http2: make usable 2017-10-16 17:13:49 +08:00
protocol_lws_meta.c http2: make usable 2017-10-16 17:13:49 +08:00
protocol_lws_mirror.c cancel_service: change to event-loop agnostic implementation 2017-11-26 19:16:17 +08:00
protocol_lws_raw_test.c raw: enable server and client raw sockets 2017-03-07 16:06:05 +08:00
protocol_lws_server_status.c http2: make usable 2017-10-16 17:13:49 +08:00
protocol_lws_sshd_demo.c tls: split out common, openssl and mbedtls code 2017-10-25 07:17:29 +08:00
protocol_lws_status.c http2: make usable 2017-10-16 17:13:49 +08:00
protocol_post_demo.c build: enable signed vs unsigned warnings on gcc 2017-10-25 07:17:29 +08:00
server-status.html http2: make usable 2017-10-16 17:13:49 +08:00