Event with mutex and condition_variable for c++11