Broker to send a signal to another thread.
More...
#include <tkrzw_thread_util.h>
|
| | SignalBroker () |
| | Default constructor.
|
| |
| bool | Send (bool all=true) |
| | Sends a signal identified by a key.
|
| |
Broker to send a signal to another thread.
◆ SignalBroker()
| tkrzw::SignalBroker::SignalBroker |
( |
| ) |
|
◆ Send()
| bool tkrzw::SignalBroker::Send |
( |
bool | all = true | ) |
|
Sends a signal identified by a key.
- Parameters
-
| all | If true, notification is sent to all waiting threads. If false, it is sent to only one waiting thread. |
- Returns
- True if the signal is received by an waiting thread, or false if not.