33#pragma clang diagnostic ignored "-Wc++98-compat"
52 static_cast<int> (res),
53 "condition_variable::notify_one() failed");
65 static_cast<int> (res),
66 "condition_variable::notify_all() failed");
76 EPERM,
"condition_variable::wait: mutex not locked");
82 "condition_variable wait failed");
86#pragma GCC diagnostic push
87#pragma GCC diagnostic ignored "-Wunused-parameter"
88#pragma GCC diagnostic ignored "-Wmissing-noreturn"
92 std::unique_lock<mutex> lk)
98#pragma GCC diagnostic pop
void wait(std::unique_lock< mutex > &lock)
void notify_one() noexcept
void notify_all() noexcept
result_t signal(void)
Notify one thread waiting for a condition variable.
result_t broadcast(void)
Notify all threads waiting for a condition variable.
result_t wait(mutex &mutex)
Wait for a condition variable to be notified.
void notify_all_at_thread_exit(condition_variable &cond, std::unique_lock< mutex > lk)
void __throw_system_error(int ev, const char *what_arg)
void __throw_cmsis_error(int ev, const char *what_arg)
@ ok
Function completed; no errors or events occurred.
uint32_t result_t
Type of values returned by RTOS functions.