Anklang-0.3.0.dev595+g65331842 anklang-0.3.0.dev595+g65331842
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 51 of file utils.hh.

Constructor & Destructor Documentation

◆ EventFd()

Ase::EventFd::EventFd ( )
explicit

Definition at line 108 of file utils.cc.

◆ ~EventFd()

Ase::EventFd::~EventFd ( )

Definition at line 204 of file utils.cc.

Member Function Documentation

◆ flush()

void Ase::EventFd::flush ( )

Clear pending wakeups.

Definition at line 187 of file utils.cc.

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

◆ inputfd()

int Ase::EventFd::inputfd ( )

Returns the file descriptor for POLLIN.

Definition at line 147 of file utils.cc.

Referenced by opened(), and pollin().

◆ open()

int Ase::EventFd::open ( )

Opens the eventfd and returns -errno.

Definition at line 113 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 153 of file utils.cc.

References inputfd().

Referenced by open().

◆ pollin()

bool Ase::EventFd::pollin ( )

Checks whether events are pending.

Definition at line 159 of file utils.cc.

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

◆ wakeup()

void Ase::EventFd::wakeup ( )

Wakeup polling end.

Definition at line 170 of file utils.cc.

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


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