Skip to content

Commit

Permalink
Implement async_std::sync::Condvar (#369)
Browse files Browse the repository at this point in the history
* Implement async_std::sync::Condvar

Part of #217

* More rigourous detection of notification for condvar

* Use state of Waker instead of AtomicUsize to keep track of if task was
notified.

* Add test for notify_all

* Implement wait_timeout_until

And add warnings about spurious wakeups to wait and wait_timeout

* Use WakerSet for Condvar

This should also address concerns about spurious wakeups.

* Add test for wait_timeout with no lock held

* Add comments describing AwaitNotify struct

And remove an unnneded comment in a Debug implementation
  • Loading branch information
tmccombs authored Apr 12, 2020
1 parent aebba2b commit db438ab
Show file tree
Hide file tree
Showing 5 changed files with 537 additions and 0 deletions.
Loading

0 comments on commit db438ab

Please sign in to comment.