Skip to content

mg_wakeup cannot be used with FreeRTOS #2961

Discussion options

You must be logged in to vote

Please see our documentation, and follow the guidelines in our tutorials.
From https://mongoose.ws/documentation/tutorials/core/multi-threaded :

To be able to use several threads, we need a mechanism that enables these threads to communicate with the main context in which the event manager is running. We can use a lock-free queue for that, though the event handler needs to poll for messages in that queue when it receives an MG_EV_POLL event. To have the event manager thread sleeping and wakeup when necessary, Mongoose provides a socket-based helper function.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
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