NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::HostAdmissionController Class Reference

Shared asynchronous capacity scheduler. More...

#include <host_admission.h>

Public Member Functions

void observe_pressure (HostPressureSample sample)
 Apply an observed pressure state.
 
std::optional< HostResourceLease > try_reserve (HostAdmissionRequest request)
 Non-blocking admission; never bypasses an existing waiter.
 

Detailed Description

Shared asynchronous capacity scheduler.

Queued requests are selected by aging priority then FIFO sequence. A held lease receives the strongest priority of feasible work it blocks, allowing a cooperative executor to prioritize the actual resource owner and avoid priority inversion. Capacity changes affect only new reservations; held leases remain valid and an overcommitted snapshot blocks further grants.

Definition at line 231 of file host_admission.h.

Member Function Documentation

◆ observe_pressure()

void neograph::HostAdmissionController::observe_pressure ( HostPressureSample  sample)

Apply an observed pressure state.

Held leases are never revoked. Normal pressure recovers in configured increments after a quiet interval.


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