ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation.sync.waitqueue.core Module Reference

Functions

auto zxfoundation::sync::waitqueue::active (const wait_head &wq) noexcept -> bool
 Lockless snapshot: returns true if any waiters are queued.
auto zxfoundation::sync::waitqueue::count (const wait_head &wq) noexcept -> u32
 Lockless snapshot: returns the number of queued waiters.
auto zxfoundation::sync::waitqueue::finish_wait (wait_head &wq, wait_entry &entry) noexcept -> void
 Remove a wait entry from the queue if still active.
auto zxfoundation::sync::waitqueue::init (wait_head &wq) noexcept -> void
 Initialize a wait queue head to the empty state.
auto zxfoundation::sync::waitqueue::prepare_to_wait (wait_head &wq, wait_entry &entry, wait_flags flags) noexcept -> void
 Add a wait entry to the queue and mark it active.
auto zxfoundation::sync::waitqueue::wake_up (wait_head &wq) noexcept -> void
 Wake ALL waiters on the queue.
auto zxfoundation::sync::waitqueue::wake_up_one (wait_head &wq) noexcept -> void
 Wake the first waiter on the queue.

Files

file  zxfoundation/sync/waitqueue.zcomponent/core.cxxm
file  zxfoundation/sync/waitqueue.zcomponent/core.cxx