Skip to content

Multiple threads possible if each uses own mg_mgr? #1527

Discussion options

You must be logged in to vote

Since recent changes, no global data is shared.
It is possible to have many threads with the mg_mgr in each. Answering your questions,

  1. Up until recently, some code had global data - not anymore. All state is located in mg_mgr
  2. IMO there are too many of them to mention
  3. Yes, using one thread per mg_mgr is fine

The 6.x version used mg_broadcast() function for inter-thread comms. In 7.x, there is a mg_mkpipe / mg_mgr_wakeup
combo

Replies: 1 comment

Comment options

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