C++ std::condition_variable_any, std::cv_status


Example

A generalization of std::condition_variable, std::condition_variable_any works with any type of BasicLockable structure.

std::cv_status as a return status for a condition variable has two possible return codes:

  • std::cv_status::no_timeout: There was no timeout, condition variable was notified
  • std::cv_status::no_timeout: Condition variable timed out