Wake one of the threads currently waiting on a std::condition_variable_any.
void notify_one();
- Effects:
Wake one of the threads waiting on
*thisat the point of the call. If there are no threads waiting, the call has no effect.- Throws:
std::system_errorif the effects cannot be achieved.- Synchronization:
Calls to
notify_one(),notify_all(),wait(),wait_for()andwait_until()on a singlestd::condition_variable_anyinstance are serialized. A call tonotify_one()ornotify_all()will only wake threads that started waiting prior to that call.
Header
#include <condition_variable>