Hold the per-user GREAT and live-PANGEA locks for one session update. More...
#include <great_session.h>
Public Member Functions | |
| GreatSessionLease () | |
| Acquire both nonblocking locks or fail without disturbing the owner. | |
| ~GreatSessionLease () | |
| Release both locks without removing the lock paths. | |
| GreatSessionLease (const GreatSessionLease &)=delete | |
| Noncopyable: both descriptors have a single lifetime owner. | |
| GreatSessionLease & | operator= (const GreatSessionLease &)=delete |
| Nonassignable: an active lease cannot be replaced by copying. | |
Private Attributes | |
| std::array< int, 2 > | descriptors_ {{-1, -1}} |
Detailed Description
Hold the per-user GREAT and live-PANGEA locks for one session update.
Both locks are necessary because offline remapping and the live watcher compete for the same camera-compute memory and output resources.
Definition at line 36 of file great_session.h.
Constructor & Destructor Documentation
◆ GreatSessionLease() [1/2]
|
inline |
Acquire both nonblocking locks or fail without disturbing the owner.
Definition at line 40 of file great_session.h.
◆ ~GreatSessionLease()
|
inline |
Release both locks without removing the lock paths.
Other callers must continue locking the same files.
Definition at line 63 of file great_session.h.
◆ GreatSessionLease() [2/2]
|
delete |
Noncopyable: both descriptors have a single lifetime owner.
Member Function Documentation
◆ operator=()
|
delete |
Nonassignable: an active lease cannot be replaced by copying.
Field Documentation
◆ descriptors_
|
private |
Definition at line 37 of file great_session.h.
The documentation for this class was generated from the following file:
- modules/pangea/great_session.h