Skip to content

Communication from EventLoop thread to process's main thread #738

Answered by bretambrose
elryno asked this question in Q&A
Discussion options

You must be logged in to vote

The simplest way is to just use a (1) lock/mutex for data protection and (2) signal/condition variable for notifications.

Using libuv though, there may be a way to tie into its API directly and replace (2) with a signal to whatever edge-trigger system that libuv likely uses (epoll/kqueue/iocp etc...).

Replies: 1 comment

Comment options

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