invoke_waiting |
Defined in
<concurrency/await.hpp> |
When calling a waiting operation, other than await()
or await_for()
, such as directly waiting on a std::condition_variable
, the waiting operation should be invoked with invoke_waiting()
. This will ensure that there are enough threads available in the portable default executor pool to resolve any pending dependent tasks. With the other default executors, this operation has no effect. Platform executors have similar capability but are hooked into blocking primitives to directly detect blocking calls.
Assumes f will wait and wakes or adds a thread to the thread pool (to the limit) before invoking f.