It\'s useful to have the ability to assert in debug mode, with reasonably small overhead, whether a mutex is locked. Viewing the known options, I\'ve chosen to implement this us
Try std::condition_variable_any. It has a template version of wait.
wait