Skip to content

Conversation

@FigBug
Copy link

@FigBug FigBug commented Aug 23, 2019

Using a long timeout for polling is good to reduce CPU usage and wakeups. But then sending messages is delayed until poll returns since they must be done from same thread. So added function interrupt() that can cancel poll from another thread, then you can check for outgoing messages and send them (or shutdown your program without having to wait for poll)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant