Lely core libraries  2.3.4
lely::ev::FiberConditionVariable Class Reference

A condition variable suitable for use in fibers. More...

#include <fiber_exec.hpp>

Public Member Functions

void notify_one () noexcept
 
void notify_all () noexcept
 
void wait (std::unique_lock< FiberMutex > &lock)
 
template<class Predicate >
void wait (std::unique_lock< FiberMutex > &lock, Predicate pred)
 

Detailed Description

A condition variable suitable for use in fibers.

Definition at line 258 of file fiber_exec.hpp.

Member Function Documentation

◆ notify_one()

void lely::ev::FiberConditionVariable::notify_one ( )
inlinenoexcept
See also
ev_fiber_cnd_signal()

Definition at line 277 of file fiber_exec.hpp.

◆ notify_all()

void lely::ev::FiberConditionVariable::notify_all ( )
inlinenoexcept
See also
ev_fiber_cnd_broadcast()

Definition at line 283 of file fiber_exec.hpp.

◆ wait() [1/2]

void lely::ev::FiberConditionVariable::wait ( std::unique_lock< FiberMutex > &  lock)
inline
See also
ev_fiber_cnd_wait()

Definition at line 289 of file fiber_exec.hpp.

◆ wait() [2/2]

template<class Predicate >
void lely::ev::FiberConditionVariable::wait ( std::unique_lock< FiberMutex > &  lock,
Predicate  pred 
)
inline
See also
ev_fiber_cnd_wait()

Definition at line 297 of file fiber_exec.hpp.


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