14 #ifndef DS3D_COMMON_HELPER_SIGNALSHOT_H
15 #define DS3D_COMMON_HELPER_SIGNALSHOT_H
23 std::condition_variable _cond;
28 std::chrono::milliseconds t(msec);
29 std::unique_lock<std::mutex> locker(_mutex);
30 _cond.wait_for(locker, t);
32 void signal() { _cond.notify_all(); }
33 std::mutex&
mutex() {
return _mutex; }