Skip to content

How does the dispatcher know when to exit? #66

Closed Answered by shikokuchuo
wlandau asked this question in Q&A
Discussion options

You must be logged in to vote

The very rare crashes would in my experience be due to devtools usage combined with updates to the compiled code in nanonext. If I am just making updates to mirai I don’t experience any crashes – and I regularly install new versions without necessarily resetting daemons first. If there is a difference in experience, then it might be a MacOS thing assuming you are developing on that platform. I would certainly not expect end users to experience any crashes or dispatcher not exiting.

As to how dispatcher exits:

  • dispatcher runs a loop in which it waits on a condition variable being signalled on various pipe and message events
  • the 'condition variable' is actually more of a semaphore, but not…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@shikokuchuo
Comment options

Answer selected by wlandau
@wlandau
Comment options

@shikokuchuo
Comment options

@wlandau
Comment options

@shikokuchuo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants