Classes | Public Member Functions | List of all members
util::fibers_ext::EventCount Class Reference

Classes

class  Key
 

Public Member Functions

bool notify () noexcept
 
bool notifyAll () noexcept
 
Key prepareWait () noexcept
 
void wait (uint32_t epoch) noexcept
 
template<typename Condition >
bool await (Condition condition)
 

Detailed Description

Definition at line 22 of file event_count.h.

Member Function Documentation

◆ await()

template<typename Condition >
bool util::fibers_ext::EventCount::await ( Condition  condition)

Wait for condition() to become true. Will clean up appropriately if condition() throws. Returns true if had to preempt using wait_queue.

Definition at line 178 of file event_count.h.


The documentation for this class was generated from the following file: