|
LibBeamApi
1.3.0
|
This class provides an interface for sending simple integer events via a file descriptor. This allows threads to send events that can be picked up by the poll system call. More...
#include <BEvent.h>
Public Member Functions | |
| BEventInt () | |
| ~BEventInt () | |
| void | clear () |
| Clear events pending. More... | |
| BError | sendEvent (int event) |
| Send an event. More... | |
| BError | getEvent (int &event, int timeOutUs=-1) |
| Receive the event. More... | |
| int | getFd () |
Private Attributes | |
| int | ofds [2] |
| File descriptors for pipe. More... | |
This class provides an interface for sending simple integer events via a file descriptor. This allows threads to send events that can be picked up by the poll system call.
| BEventInt::BEventInt | ( | ) |
| BEventInt::~BEventInt | ( | ) |
| void BEventInt::clear | ( | ) |
Clear events pending.
| BError BEventInt::getEvent | ( | int & | event, |
| int | timeOutUs = -1 |
||
| ) |
Receive the event.
| int BEventInt::getFd | ( | ) |
| BError BEventInt::sendEvent | ( | int | event | ) |
Send an event.
|
private |
File descriptors for pipe.
1.8.9.1