From a798b1a93729a8d086f630eadb2cbe6f8f2b12e0 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Tue, 7 Jan 2014 09:10:58 +0000 Subject: [PATCH] Updated docs --- docs/Internals.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Internals.md b/docs/Internals.md index ee99f7b3..2af777cd 100644 --- a/docs/Internals.md +++ b/docs/Internals.md @@ -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 mutex-protect `struct mg_server *`, therefore the best practice is 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