mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-22 14:48:04 +08:00
849ec1684a
PUBLISHED_FROM=5cd78790a03580aa23dd3d2d8b825ad449083cc2
15 lines
478 B
Markdown
15 lines
478 B
Markdown
---
|
|
title: "mg_enable_multithreading()"
|
|
decl_name: "mg_enable_multithreading"
|
|
symbol_kind: "func"
|
|
signature: |
|
|
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.
|
|
|