Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::unix::SelfPipe Struct Reference

#include <file-descriptor.hh>

Public Member Functions

void create ()
void notify ()
void drain ()

Public Attributes

Pipe pipe

Detailed Description

A useful primitive for asynchronous poll() loops to notify about some work completing that gets polled alongside other file descriptors.

Member Function Documentation

◆ drain()

void nix::unix::SelfPipe::drain ( )

Drain all data from the pipe.

◆ notify()

void nix::unix::SelfPipe::notify ( )

Write some data to the pipe in a non-blocking manner.


The documentation for this struct was generated from the following files: