mirror of
https://github.com/cesanta/mongoose.git
synced 2025-06-07 17:42:30 +08:00
Update mg_enable_multithreading.md
This commit is contained in:
parent
f900854e0d
commit
5dd9d37ef2
@ -6,9 +6,9 @@ signature: |
|
|||||||
void mg_enable_multithreading(struct mg_connection *nc);
|
void mg_enable_multithreading(struct mg_connection *nc);
|
||||||
---
|
---
|
||||||
|
|
||||||
Enable multi-threaded handling for the given listening connection `nc`.
|
Enables multi-threaded handling for the given listening connection `nc`.
|
||||||
For each accepted connection, Mongoose will create a separate thread
|
For each accepted connection, Mongoose will create a separate thread
|
||||||
and run event handler in that thread. Thus, if an event hanler is doing
|
and run an event handler in that thread. Thus, if an event handler is doing
|
||||||
a blocking call or some long computation, that will not slow down
|
a blocking call or some long computation, it will not slow down
|
||||||
other connections.
|
other connections.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user