Category "condition-variable"

Is std::condition_variable::notify_one reentrant?

Can I safely execute following code? Is it possible to have deadlock here or some unexpected behaviour, especially when SIGINT arrives? #include <atomic>

Spurious wakeup with atomics and condition_variables

std::atomic<T> and std::condition_variable both have member wait and notify_one functions. In some applications, programmers may have a choice between usi

How is CONDITION_VARIABLE implemented?

A longer version of the title question would be: On my machine, sizeof(std::condition_variable) is 72 bytes. What are these 72 bytes used for? Note: The size