async-std/src/sync
Thayne McCombs db438abb8f
Implement async_std::sync::Condvar (#369)
* 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
2020-04-12 13:35:18 +02:00
..
barrier.rs Update futures to 0.3 (#463) 2019-11-06 20:20:27 +00:00
channel.rs Update try_channel doctests 2020-03-16 00:05:39 +01:00
condvar.rs Implement async_std::sync::Condvar (#369) 2020-04-12 13:35:18 +02:00
mod.rs Implement async_std::sync::Condvar (#369) 2020-04-12 13:35:18 +02:00
mutex.rs Implement async_std::sync::Condvar (#369) 2020-04-12 13:35:18 +02:00
rwlock.rs Make code compile 2019-12-14 23:42:14 +08:00
spin_lock.rs re add spin_lock 2020-03-22 19:19:17 +09:00
waker_set.rs Implement async_std::sync::Condvar (#369) 2020-04-12 13:35:18 +02:00