ThreadSchedule 2.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::IndefiniteWait Struct Reference

Wait policy that blocks indefinitely until work is available. More...

#include <thread_pool.hpp>

Static Public Member Functions

template<typename Lock, typename Pred>
static auto wait (std::condition_variable &cv, Lock &lock, Pred pred) -> bool

Detailed Description

Wait policy that blocks indefinitely until work is available.

Workers consume zero CPU while idle but wake instantly when a task is enqueued. Used by the ThreadPool type alias.

Definition at line 1180 of file thread_pool.hpp.

Member Function Documentation

◆ wait()

template<typename Lock, typename Pred>
auto threadschedule::IndefiniteWait::wait ( std::condition_variable & cv,
Lock & lock,
Pred pred ) -> bool
inlinestatic

Definition at line 1183 of file thread_pool.hpp.


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