Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
EventFd

#include "utils.hh"

Public Member Functions

EventFd ()
voidflush ()
intinputfd ()
intopen ()
boolopened ()
boolpollin ()
voidwakeup ()
~EventFd ()

Detailed Description

Wakeup facility for IPC.

Constructor & Destructor Documentation

EventFd()

EventFd ( )
explicit

~EventFd()

~EventFd ( )

Member Function Documentation

open()

int open ( )

Opens the eventfd and returns -errno.

opened()

bool opened ( )

Indicates whether eventfd has been opened.

wakeup()

void wakeup ( )

Wakeup polling end.

inputfd()

int inputfd ( )

Returns the file descriptor for POLLIN.

pollin()

bool pollin ( )

Checks whether events are pending.

flush()

void flush ( )

Clear pending wakeups.