#include <select-syscalls.h>
|
Semaphore * | m_pSemaphore |
|
fd_set * | m_pFdSet |
|
size_t | m_FdIdx |
|
File * | m_pFile |
|
Event class for passing to File::monitor.
Definition at line 28 of file select-syscalls.h.
SelectEvent::SelectEvent |
( |
| ) |
|
The constructor takes a semaphore that it should signal when it fires, and an fd_set with an index to set.
virtual size_t SelectEvent::getNumber |
( |
| ) |
|
|
inlinevirtual |
virtual size_t SelectEvent::serialize |
( |
uint8_t * |
pBuffer | ) |
|
|
virtual |
Given a buffer EVENT_LIMIT bytes long, take the variables present in this object and convert them to a binary form.
It can be assumed that this function will only be called when the Event is about to be dispatched, and so the inhibited mask of the current Thread is available to be changed to what the event handler requires. This change will be undone when the handler completes.
- Parameters
-
pBuffer | The buffer to serialize to. |
- Returns
- The number of bytes serialized.
Implements Event.
The documentation for this class was generated from the following file: