Event::new()
is now a const fn.
- Fix a bug in
List::insert()
that was causing deadlocks.
- Optimization: use a simple spinlock and cache an
Entry
for less allocation.
- Optimization: don't initialize
Inner
when notifyingEvent
.
- Implement
UnwindSafe
/RefUnwindSafe
forEvent
/EventListener
.
- Always keep the last waker in
EventListener::poll()
.
- Add
EventListener::same_event()
.
- Add
EventListener::listens_to()
.
- Replace
usize::MAX
withstd::usize::MAX
.
- Remove
Event::notify_one()
andEvent::notify_all()
. - Add
Event::notify_relaxed()
andEvent::notify_additional_relaxed()
. - Dropped notified
EventListener
now notifies one or one additional listener.
- Add
Event::notify_additional()
.
- Change a
Relaxed
load toAcquire
load.
- Fix a bug in
EventListener::wait_timeout()
.
- Add
EventListener::notify()
.
- Reduce the complexity of
notify_all()
from O(n) to amortized O(1). - Fix a bug where entries were notified in wrong order.
- Add tests.
- Initial version.