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