Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Ase::EventFd Class Reference

Wakeup facility for IPC. More...

#include "utils.hh"

Public Member Functions

int open ()
 Opens the eventfd and returns -errno.
 
bool opened ()
 Indicates whether eventfd has been opened.
 
void wakeup ()
 Wakeup polling end.
 
int inputfd ()
 Returns the file descriptor for POLLIN.
 
bool pollin ()
 Checks whether events are pending.
 
void flush ()
 Clear pending wakeups.
 

Detailed Description

Wakeup facility for IPC.

Definition at line 62 of file utils.hh.

Constructor & Destructor Documentation

◆ EventFd()

Ase::EventFd::EventFd ( )
explicit

Definition at line 201 of file utils.cc.

◆ ~EventFd()

Ase::EventFd::~EventFd ( )

Definition at line 297 of file utils.cc.

Member Function Documentation

◆ flush()

void Ase::EventFd::flush ( )

Clear pending wakeups.

Definition at line 280 of file utils.cc.

References EINTR, errno(), and read().

◆ inputfd()

int Ase::EventFd::inputfd ( )

Returns the file descriptor for POLLIN.

Definition at line 240 of file utils.cc.

Referenced by opened(), and pollin().

◆ open()

int Ase::EventFd::open ( )

Opens the eventfd and returns -errno.

Definition at line 206 of file utils.cc.

References assert_return, EAGAIN, EINTR, errno(), fcntl(), and opened().

◆ opened()

bool Ase::EventFd::opened ( )

Indicates whether eventfd has been opened.

Definition at line 246 of file utils.cc.

References inputfd().

Referenced by open().

◆ pollin()

bool Ase::EventFd::pollin ( )

Checks whether events are pending.

Definition at line 252 of file utils.cc.

References EAGAIN, EINTR, errno(), inputfd(), and poll().

◆ wakeup()

void Ase::EventFd::wakeup ( )

Wakeup polling end.

Definition at line 263 of file utils.cc.

References EINTR, errno(), and write().


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