#include <inter_process_lock.hpp>
◆ InterProcessLock() [1/2]
| pulp::runtime::InterProcessLock::InterProcessLock |
( |
std::string_view | name | ) |
|
|
explicit |
Create a lock with the given name (used to derive the lock file path).
◆ ~InterProcessLock()
| pulp::runtime::InterProcessLock::~InterProcessLock |
( |
| ) |
|
◆ InterProcessLock() [2/2]
| pulp::runtime::InterProcessLock::InterProcessLock |
( |
const InterProcessLock & | | ) |
|
|
delete |
◆ is_locked()
| bool pulp::runtime::InterProcessLock::is_locked |
( |
| ) |
const |
|
inline |
Whether this instance holds the lock.
◆ operator=()
◆ try_lock()
| bool pulp::runtime::InterProcessLock::try_lock |
( |
| ) |
|
Try to acquire the lock. Returns true if acquired.
◆ try_lock_shared()
| bool pulp::runtime::InterProcessLock::try_lock_shared |
( |
| ) |
|
Try to acquire a shared/read lock. Multiple shared holders may coexist.
◆ unlock()
| void pulp::runtime::InterProcessLock::unlock |
( |
| ) |
|
The documentation for this class was generated from the following file: