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

Connection

One held-open control client.

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

Description#

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.

Members15#

Common operations1#

Other members14#

Guides#

Pages that discuss Connection.

Esc

Type to search.

Reference previewOpen reference