1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/core-net
Andy Green d8ccfc2370 lws_system: helpers for attaching to existing event loop from other threads
In the case code is composed into a single process, but it isn't monolithic in the
sense it's made up of modular "applications" that are written separate projects,
provide a way for the "applications" to request a callback from the lws event loop
thread context safely.

From the callback the applications can set up their operations on the lws event
loop and drop their own thread.

Since it requires system-specific locking to be threadsafe, provide a non-threadsafe
helper and then indirect the actual usage through a user-defined lws_system ops
function pointer that wraps the unsafe api with the system locking to make it safe.
2020-01-05 22:17:58 +00:00
..
adopt.c adopt: pass wsi opaque so its set from the start 2019-12-09 14:48:54 +00:00
client.c client: make external http proxying optional 2019-08-26 09:58:57 +01:00
close.c mux children: generalize helpers out of h2 implementation 2019-12-29 19:59:16 +00:00
connect.c h2: LCCSCF_H2_MANUAL_RXFLOW and refactor txcr 2020-01-02 08:31:02 +00:00
detailed-latency.c detailed latency stats 2019-09-22 03:06:59 -07:00
dummy-callback.c mux children: generalize helpers out of h2 implementation 2019-12-29 19:59:16 +00:00
lws-dsh.c Coverity fixes 2019-08-19 10:12:20 +01:00
network.c LWS_ERRNO: audit uses for case logging may destroy errno 2019-12-14 23:55:28 +00:00
output.c mux children: generalize helpers out of h2 implementation 2019-12-29 19:59:16 +00:00
pollfd.c mux children: generalize helpers out of h2 implementation 2019-12-29 19:59:16 +00:00
private-lib-core-net.h lws_system: helpers for attaching to existing event loop from other threads 2020-01-05 22:17:58 +00:00
sequencer.c private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
server.c illumos: fix build errors 2019-11-04 13:49:13 +00:00
service.c lws_state and system state 2019-09-22 09:35:07 -07:00
sorted-usec-list.c lws_system: helpers for attaching to existing event loop from other threads 2020-01-05 22:17:58 +00:00
state.c fail paths: deregister notifier and be sure adopt returns NULL 2019-12-06 17:14:28 +00:00
stats.c private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
vhost.c active_conns: move out dependency on ah 2019-12-23 09:25:56 +00:00
wsi-timeout.c mux children: generalize helpers out of h2 implementation 2019-12-29 19:59:16 +00:00
wsi.c h2: LCCSCF_H2_MANUAL_RXFLOW and refactor txcr 2020-01-02 08:31:02 +00:00