5#include <condition_variable>
62 std::condition_variable callerThreadCV;
63 std::thread::id threadId;
69 bool queueClosed_{
false };
70 std::thread::id mainThreadId_;
71 std::queue<std::shared_ptr<Command>> commands_;
Definition MRCommandLoop.h:14
static MRVIEWER_API void runCommandFromGUIThread(CommandFunc func)
StartPosition
Definition MRCommandLoop.h:20
static MRVIEWER_API void processCommands()
std::function< void()> CommandFunc
Definition MRCommandLoop.h:16
static MRVIEWER_API void setMainThreadId(const std::thread::id &id)
static MRVIEWER_API void setState(StartPosition state)
static MRVIEWER_API void appendCommand(CommandFunc func, StartPosition state=StartPosition::AfterSplashHide)
static MRVIEWER_API std::thread::id getMainThreadId()
static MRVIEWER_API void removeCommands(bool closeLoop)
Definition MRCameraOrientationPlugin.h:8