Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

class libtmux-cxx latest

CommandRuntime

Move-only owner of the transport threads, admission bound, and observations.

Source and package
Qualified name
libtmux::CommandRuntime
Namespace
libtmux
Package
libtmux-cxx
Source
include/libtmux/async.hpp
class libtmux::CommandRuntime

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 in wait_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
Esc

Type to search.

Reference previewOpen reference