# libtmux::CommandRuntimeSnapshot

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/async.hpp#L39
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-commandruntimesnapshot/

A lock-consistent instant; values may change immediately after it is read.

Admission, refusal, and completion totals are monotonic. The runtime's counters at one instant, for diagnostics rather than control.

Read under a lock and stale immediately after, so a caller must not branch on `in_flight` expecting it to still hold. The totals only ever increase.

## Members

- `capacity` (attribute)
- `in_flight` (attribute): Accepted commands retaining transport, result, or observer work.
- `pending_results` (attribute): Result handles not yet waited, detached, or destroyed.
- `pending_observers` (attribute): Observer records not yet claimed for dispatch or discarded, ready or not.
- `accepted` (attribute): Commands admitted since startup.
- `refused` (attribute): Commands refused before admission since startup.
- `completed` (attribute): Accepted results whose observer record, when present, is also ready.
- `accepting` (attribute): True while neither stop nor close has ended admission.
