#include <rex/platform/process.h>
|
|
| InstanceLock (InstanceLock &&other) noexcept |
|
InstanceLock & | operator= (InstanceLock &&other) noexcept |
|
|
| MoveOnly (MoveOnly &&)=default |
|
MoveOnly & | operator= (MoveOnly &&)=default |
|
| MoveOnly (const MoveOnly &)=delete |
|
MoveOnly & | operator= (const MoveOnly &)=delete |
A named lock across processes, held for the life of the object.
◆ Acquire()
| Result< InstanceLock > rex::platform::InstanceLock::Acquire |
( |
std::string_view | name | ) |
|
|
staticnodiscard |
Takes the lock.
- Parameters
-
| name | Lock name, shared by every process of the app. |
- Returns
- The held lock, or ErrorCategory::kPlatform when another process holds it.
The documentation for this class was generated from the following file: