CommandRuntime
Move-only owner of the transport threads, admission bound, and observations.
Source and package
- Qualified name
-
libtmux::Command Runtime - Namespace
- libtmux
- Package
- libtmux-cxx
- Source
- include/libtmux/async.hpp
-
Description#
Runtime operations, including
try_submit(), may race; move and destruction may not.
Members11#
- ~CommandRuntime method Stops and joins owned threads; pending observers are discarded, not invoked.
- close method Joins every owned thread without invoking or discarding observers, and does not return or throw until every blocked
wait_ready()caller has left. - CommandRuntime method
- discard_ready method Releases ready observer obligations without invoking callbacks.
- dispatch_ready method Runs one snapshot of ready observers on this thread and returns its count.
- ready_fd method Readable exactly when
wait_ready()would return without blocking, for a caller that owns an event loop and cannot park a thread inwait_ready(). - request_stop method Stops admission and requests cancellation without waiting.
- snapshot method Reads one lock-consistent instant without waiting for work.
- start method Starts the bounded transport; startup failures are not-started values.
- wait_ready method Waits for a ready observer without invoking it.
- wait_ready_for method