-
- Downloads
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.
Showing
- READMEs/README.coding.md 12 additions, 4 deletionsREADMEs/README.coding.md
- lib/context.c 90 additions, 3 deletionslib/context.c
- lib/event-libs/libev.c 3 additions, 0 deletionslib/event-libs/libev.c
- lib/event-libs/libevent.c 3 additions, 0 deletionslib/event-libs/libevent.c
- lib/event-libs/libuv.c 7 additions, 1 deletionlib/event-libs/libuv.c
- lib/libwebsockets.c 4 additions, 3 deletionslib/libwebsockets.c
- lib/libwebsockets.h 14 additions, 14 deletionslib/libwebsockets.h
- lib/plat/lws-plat-esp32.c 18 additions, 0 deletionslib/plat/lws-plat-esp32.c
- lib/plat/lws-plat-esp8266.c 18 additions, 10 deletionslib/plat/lws-plat-esp8266.c
- lib/plat/lws-plat-optee.c 17 additions, 26 deletionslib/plat/lws-plat-optee.c
- lib/plat/lws-plat-unix.c 39 additions, 62 deletionslib/plat/lws-plat-unix.c
- lib/plat/lws-plat-win.c 52 additions, 46 deletionslib/plat/lws-plat-win.c
- lib/pollfd.c 30 additions, 19 deletionslib/pollfd.c
- lib/private-libwebsockets.h 14 additions, 2 deletionslib/private-libwebsockets.h
- lib/service.c 42 additions, 0 deletionslib/service.c
- plugins/protocol_lws_mirror.c 4 additions, 0 deletionsplugins/protocol_lws_mirror.c
- test-apps/test-server-libuv.c 16 additions, 2 deletionstest-apps/test-server-libuv.c
- test-apps/test-server.c 1 addition, 0 deletionstest-apps/test-server.c
Loading
Please register or sign in to comment