5#include <condition_variable>
47 MRVIEWER_API
static bool empty();
65 std::condition_variable callerThreadCV;
66 std::thread::id threadId;
72 bool queueClosed_{
false };
73 std::thread::id mainThreadId_;
74 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()
static MRVIEWER_API bool empty()
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