Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

libtmux::Connection

C++
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++
  • Swift Unavailable

View as Markdown

Module
libtmux
Package
libtmux-cxx
Source
include/libtmux/control.hpp
class libtmux::Connection
class [source]
class [source]
class libtmux::Connection

One held-open control client.

Shared freely between threads. execute , take_notifications , wait_for_notifications , watch_notifications , set_pane_output and the muting pair may all be called at once: writes are serialized, and each reply is matched to its own request through a private boundary, which is what lets concurrent callers tell their blocks apart even though tmux puts no request id on a guard.

Moving from a connection, or destroying one, may not race with any of those — the same rule CommandRuntime states for itself.

It remains one FIFO client, so a command that waits on the server also delays whatever another thread asked for next. That is why Server::run stays the surface for a command whose final result matters.

Discussed in Control mode vs one-shot

15 declared, 0 inherited

Members

Esc

Type to search.