19std::filesystem::path
exeDir();
46 static constexpr std::intptr_t kInvalid = -1;
47 std::intptr_t handle_ = kInvalid;
RAII holder of the process-wide single-instance lock.
Definition platform.h:33
~SingleInstanceLock()
Definition platform.cc:72
SingleInstanceLock(const SingleInstanceLock &)=delete
friend std::expected< SingleInstanceLock, std::string > acquireSingleInstanceLock()
Acquire the process-wide lock that permits only one running Motion Master.
Definition platform.cc:83
SingleInstanceLock & operator=(const SingleInstanceLock &)=delete
SingleInstanceLock & operator=(SingleInstanceLock &&other) noexcept
Definition platform.cc:66
SingleInstanceLock()=default
Definition cyclic_timer.h:6
std::expected< SingleInstanceLock, std::string > acquireSingleInstanceLock()
Acquire the process-wide lock that permits only one running Motion Master.
Definition platform.cc:83
std::filesystem::path exeDir()
Return the directory that contains the running executable.
Definition platform.cc:27
void openInBrowser(const std::string &url)
Open the given URL in the system default browser.
Definition platform.cc:45