5#include <condition_variable>
17using Time = std::chrono::time_point<std::chrono::system_clock>;
43 std::condition_variable cvar_;
44 std::optional<Time> time_;
45 bool terminating_ =
false;
70 std::thread listenerThread_;
74 void storeCommand_(
Command command );
Definition MRAsyncTimer.h:53
MRVIEWER_API void requestIfNotSet(const Time &time, Command command)
MRVIEWER_API void request(const Time &time, Command command)
MRVIEWER_API void reset()
std::function< void()> Command
Definition MRAsyncTimer.h:57
MRVIEWER_API AsyncRequest()
MRVIEWER_API ~AsyncRequest()
Definition MRAsyncTimer.h:21
MRVIEWER_API void setTime(const Time &time)
MRVIEWER_API void resetTime()
MRVIEWER_API Event waitBlocking()
MRVIEWER_API bool setTimeIfNotSet(const Time &time)
Event
Definition MRAsyncTimer.h:35
MRVIEWER_API void terminate()
Definition MRCameraOrientationPlugin.h:7
std::chrono::time_point< std::chrono::system_clock > Time
Definition MRAsyncTimer.h:17