Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
pangea_survey::GreatSessionLease Class Reference

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]

pangea_survey::GreatSessionLease::GreatSessionLease ( )
inline

Acquire both nonblocking locks or fail without disturbing the owner.

Definition at line 40 of file great_session.h.

◆ ~GreatSessionLease()

pangea_survey::GreatSessionLease::~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]

pangea_survey::GreatSessionLease::GreatSessionLease ( const GreatSessionLease & )
delete

Noncopyable: both descriptors have a single lifetime owner.

Member Function Documentation

◆ operator=()

GreatSessionLease & pangea_survey::GreatSessionLease::operator= ( const GreatSessionLease & )
delete

Nonassignable: an active lease cannot be replaced by copying.

Field Documentation

◆ descriptors_

std::array<int, 2> pangea_survey::GreatSessionLease::descriptors_ {{-1, -1}}
private

Definition at line 37 of file great_session.h.


The documentation for this class was generated from the following file: