112 template <class Predicate>
128 template <
class Rep,
class Period>
130 return WaitFor(lock, std::chrono::duration_cast<std::chrono::nanoseconds>(rel).count());
145 template <
class Rep,
class Period,
class Predicate>
147 const auto deadline = std::chrono::steady_clock::now() + rel;
165 template <
class Clock,
class Duration>
167 const auto rel = abs - Clock::now();
168 if (rel <= Clock::duration::zero())
185 template <
class Clock,
class Duration,
class Predicate>
ConditionVariable(ConditionVariable &&)=delete
void notify_one() noexcept
Wake one waiter.
CvStatus wait_for(UniqueLock &lock, const std::chrono::duration< Rep, Period > &rel)
Wait until notified or rel elapses.
Definition condition_variable.hxx:129
~ConditionVariable() noexcept
Destroys the signal on Base's heap.
void notify_all() noexcept
Wake every waiter.
CvStatus wait_until(UniqueLock &lock, const std::chrono::time_point< Clock, Duration > &abs)
Wait until notified or abs is reached.
Definition condition_variable.hxx:166
bool wait_for(UniqueLock &lock, const std::chrono::duration< Rep, Period > &rel, Predicate pred)
Wait until pred is true or rel elapses.
Definition condition_variable.hxx:146
ConditionVariable(const ConditionVariable &)=delete
void wait(UniqueLock &lock)
Wait until notified.
bool wait_until(UniqueLock &lock, const std::chrono::time_point< Clock, Duration > &abs, Predicate pred)
Wait until pred is true or abs is reached.
Definition condition_variable.hxx:186
ConditionVariable()
Condition with no waiters.
Owns at most one Mutex.
Definition unique_lock.hxx:64
Owned values that cross a DLL without the caller's CRT.
CvStatus
Why a timed wait returned.
Definition memory_order.hxx:73
@ Timeout
The deadline passed.
Definition memory_order.hxx:75
Root namespace of the StormByte suite.
#define STORMBYTE_PUBLIC
Definition visibility.h:52