18 #ifndef DS3D_COMMON_HELPER_SIGNALSHOT_H
19 #define DS3D_COMMON_HELPER_SIGNALSHOT_H
21 #include <ds3d/common/common.h>
27 std::condition_variable _cond;
32 std::chrono::milliseconds t(msec);
33 std::unique_lock<std::mutex> locker(_mutex);
34 _cond.wait_for(locker, t);
36 void signal() { _cond.notify_all(); }
37 std::mutex&
mutex() {
return _mutex; }