A utility class to allow simple signalling between threads.
More...
#include <BS_thread_pool_utils.hpp>
|
std::promise< void > | promise |
| A promise used to set the state of the signaller.
|
|
std::shared_future< void > | future |
| A future used to wait for the signaller.
|
|
A utility class to allow simple signalling between threads.
◆ signaller()
BS::signaller::signaller |
( |
| ) |
|
|
inline |
Construct a new signaller.
std::shared_future< void > future
A future used to wait for the signaller.
Definition BS_thread_pool_utils.hpp:75
std::promise< void > promise
A promise used to set the state of the signaller.
Definition BS_thread_pool_utils.hpp:70
◆ ready()
void BS::signaller::ready |
( |
| ) |
|
|
inline |
Inform any waiting threads that the signaller is ready.
◆ wait()
void BS::signaller::wait |
( |
| ) |
|
|
inline |
Wait until the signaller is ready.
The documentation for this class was generated from the following file: