-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid polling when waiting on channels #288
Comments
The rust runtime also currently uses sleep. We should instead implement correct thread suspension. This could possibly be based on Condvar in rust or through some use of the future framework. |
Some notes
|
For the C++ side of this, I've dumped my experiments into #589. Also, there's some interesting and possibly relevant stuff in "Go channels on steroids" |
Possibly based on
absl::Notification
(although that says multiple calls toNotify()
are undefined behaviour, so it's not an immediate fit).The text was updated successfully, but these errors were encountered: