Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
a798b1a9
Commit
a798b1a9
authored
Jan 07, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated docs
parent
04de3bb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Internals.md
docs/Internals.md
+2
-0
No files found.
docs/Internals.md
View file @
a798b1a9
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment