Skip to content

Added interrupt() function to break out of poll() before timeout#88

Open
FigBug wants to merge 2 commits intodhbaird:masterfrom
FigBug:feature/interrupt
Open

Added interrupt() function to break out of poll() before timeout#88
FigBug wants to merge 2 commits intodhbaird:masterfrom
FigBug:feature/interrupt

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