code wiki / _hdl_build / nx_apistack_bulkhead.nx
nx_apistack_bulkhead.nx
buildroot/runtime/_hdl_build/nx_apistack_bulkhead.nx
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
imports: nx_syscalls.nx
imported by: nx_apistack_bulkhead_gate.nx
structs
| none |
consts
| none |
functions
| 8 | func bh_acquire(bh: *i64, max: i64) -> i64 called by 1: main |
| 13 | func bh_release(bh: *i64) -> i64 called by 1: main |