code wiki / _hdl_build / nx_apistack_bulkhead.nx

nx_apistack_bulkhead.nx

buildroot/runtime/_hdl_build/nx_apistack_bulkhead.nx

788 B16 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic apistack
docsdependenciesstructsconstsfunctions

about

nx_apistack_bulkhead.nx -- CAP-API-BULKHEAD: concurrency isolation for /api. A bulkhead caps concurrent in-flight calls to a resource so a slow/expensive route can't exhaust the whole plane (isolation, the Titanic-compartment pattern). Pure counter: bh[0]=active. acquire returns 1 (and increments) if under max, else 0 (reject/shed). Deterministic, gateable offline. license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_apistack_bulkhead.nx nx_apistack_bulkhead_gate.nx

imports: nx_syscalls.nx

imported by: nx_apistack_bulkhead_gate.nx

structs

none

consts

none

functions

8func bh_acquire(bh: *i64, max: i64) -> i64
called by 1: main
13func bh_release(bh: *i64) -> i64
called by 1: main