Skip to content
Discussion options

You must be logged in to vote

Please read the docs and try before opening an issue. If you want to ask a question there is the discussion area.

From the docs

NOTE: Since Mongoose's core is not protected against concurrent accesses, make sure that all mg_* API functions are called from the same thread or RTOS task.

If you absolutely need multi-threading, take the time to go through the user guide (linked above), examples, and tutorials, there is one that shows you how to do multi-threading.

  1. From the examples (in this very repo): the new way, use a queue
    https://github.com/cesanta/mongoose/tree/master/examples/multi-threaded

  2. From the tutorials: the old way, the socket pipe
    https://mongoose.ws/documentation/tutoria…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@scaprile
Comment options

scaprile May 2, 2023
Collaborator

Answer selected by scaprile
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2176 on May 02, 2023 13:21.