mongoose/docs/c-api/net.h/mg_enable_multithreading.md
Dmitry Frank 849ec1684a Apply Mongoose docs edits by Ev
PUBLISHED_FROM=5cd78790a03580aa23dd3d2d8b825ad449083cc2
2016-07-26 15:06:04 +00:00

478 B

title decl_name symbol_kind signature
mg_enable_multithreading() mg_enable_multithreading func void mg_enable_multithreading(struct mg_connection *nc);

Enables multi-threaded handling for the given listening connection nc. For each accepted connection, Mongoose will create a separate thread and run an event handler in that thread. Thus, if an event handler is doing a blocking call or some long computation, it will not slow down other connections.