mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-14 16:49:26 +08:00
7bed7ff482
Comments in headers are changed a bit: removed adoc-specific stuff, markdown is used instead PUBLISHED_FROM=9242cce85cc52a47a197d377e7e23804721a6bb5
15 lines
475 B
Markdown
15 lines
475 B
Markdown
---
|
|
title: "mg_enable_multithreading()"
|
|
decl_name: "mg_enable_multithreading"
|
|
symbol_kind: "func"
|
|
signature: |
|
|
void mg_enable_multithreading(struct mg_connection *nc);
|
|
---
|
|
|
|
Enable multi-threaded handling for the given listening connection `nc`.
|
|
For each accepted connection, Mongoose will create a separate thread
|
|
and run event handler in that thread. Thus, if an event hanler is doing
|
|
a blocking call or some long computation, that will not slow down
|
|
other connections.
|
|
|