|
ThreadSchedule 2.0.0
Modern C++ thread management library
|
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 |
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.
|
inlinestatic |
Definition at line 1183 of file thread_pool.hpp.