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

libtmux::Connection::notification_fd

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
Declared in
Connection
Package
libtmux-cxx
Source
include/libtmux/control.hpp
notification_fd ( ) → int
methodreadonly [source]
methodreadonly [source]
notification_fd

A descriptor that is readable exactly when a take would return something.

For a caller who owns their own event loop. Without it, integrating means a thread blocked in wait_for_notifications , a queue of their own, and a self-pipe to wake the loop — which is this descriptor, rebuilt by hand on top of the thread and queue this connection already has.

Do not read from it: readability is the signal and the byte is this connection's to consume. Drain with take_notifications , which clears it. A broken stream makes it readable too, so a poller learns of the failure rather than waiting for an answer that cannot come.

Valid until the connection is destroyed or moved from; -1 if the pipe could not be created.

0 declared, 0 inherited

Esc

Type to search.