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::MapResources Class Reference

Enforce the configured bounded-work policy for a survey process. More...

#include <map_resources.h>

Public Member Functions

 MapResources (const MapConfig &config)
 Establish process limits for the selected runtime profile.
void checkpoint ()
 Check current process RSS and system reserve at a bounded cadence.

Private Attributes

bool bounded_
std::uint64_t limit_
std::uint64_t reserve_
std::chrono::steady_clock::time_point checked_ {}

Detailed Description

Enforce the configured bounded-work policy for a survey process.

Low-memory mode limits address space, worker count, open files and scheduler priority. Periodic checks also preserve system-available memory; they are admission/overload guards, not a hard RSS cap or a whole-board proof.

Definition at line 67 of file map_resources.h.

Constructor & Destructor Documentation

◆ MapResources()

pangea_survey::MapResources::MapResources ( const MapConfig & config)
inlineexplicit

Establish process limits for the selected runtime profile.

Parameters
[in]configValidated map configuration.
Exceptions
std::runtime_errorIf the profile is unsupported or any required Linux resource policy cannot be established.

Definition at line 78 of file map_resources.h.

Member Function Documentation

◆ checkpoint()

void pangea_survey::MapResources::checkpoint ( )
inline

Check current process RSS and system reserve at a bounded cadence.

Exceptions
std::runtime_errorIf memory headroom closes; existing checkpoints are intentionally left in place for a later resume.

Definition at line 106 of file map_resources.h.

Field Documentation

◆ bounded_

bool pangea_survey::MapResources::bounded_
private

Definition at line 68 of file map_resources.h.

◆ checked_

std::chrono::steady_clock::time_point pangea_survey::MapResources::checked_ {}
private

Definition at line 70 of file map_resources.h.

◆ limit_

std::uint64_t pangea_survey::MapResources::limit_
private

Definition at line 69 of file map_resources.h.

◆ reserve_

std::uint64_t pangea_survey::MapResources::reserve_
private

Definition at line 69 of file map_resources.h.


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