|
Tkrzw
|
Broker to send a signal associated with a key to another thread. More...
#include <tkrzw_thread_util.h>
Classes | |
| class | Waiter |
| Handler to wait for the signal. More... | |
Public Member Functions | |
| KeySignalBroker () | |
| Default constructor. More... | |
| bool | Send (const KEYTYPE &key, bool all=true) |
| Sends a signal identified by a key. More... | |
Friends | |
| class | Waiter |
Broker to send a signal associated with a key to another thread.
| tkrzw::KeySignalBroker< KEYTYPE >::KeySignalBroker |
Default constructor.
| bool tkrzw::KeySignalBroker< KEYTYPE >::Send | ( | const KEYTYPE & | key, |
| bool | all = true |
||
| ) |
Sends a signal identified by a key.
| key | The key of the signal. |
| all | If true, notification is sent to all waiting threads. If false, it is sent to only one waiting thread. |