Use thread_state_ex_enum on detail::condition_variable