Skip to content
Snippets Groups Projects
Commit a798b1a9 authored by Sergey Lyubka's avatar Sergey Lyubka
Browse files

Updated docs

parent 04de3bb2
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,8 @@ one thread calling `mg_poll_server()`, `mg_set_option()` or any other function ...@@ -15,6 +15,8 @@ one thread calling `mg_poll_server()`, `mg_set_option()` or any other function
that take `struct mg_server *` parameter. Mongoose does not that take `struct mg_server *` parameter. Mongoose does not
mutex-protect `struct mg_server *`, therefore the best practice is mutex-protect `struct mg_server *`, therefore the best practice is
to call server management functions from the same thread (an IO thread). to call server management functions from the same thread (an IO thread).
On a multi-core systems, many server instances can be created, sharing the
same listening socket and managed by a separate thread (see [example](https://github.com/cesanta/mongoose/blob/master/examples/multi_threaded.c)).
It is an error to pass and store `struct mg_connection *` pointers for It is an error to pass and store `struct mg_connection *` pointers for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment