eventxx
1.0.1
|
Timer event object. More...
Public Member Functions | |
timer (F &handler) throw () | |
Creates a new timer event. More... | |
Public Member Functions inherited from eventxx::event< F > | |
event (int fd, type ev, F &handler) throw () | |
Creates a new event. More... | |
Public Member Functions inherited from eventxx::basic_event | |
bool | pending (type ev) const throw () |
Checks if there is an event pending. More... | |
time | timeout () const throw () |
Timeout of the event. More... | |
void | priority (int priority) const throw (invalid_event, invalid_priority) |
Sets the event's priority. More... | |
int | fd () const throw () |
Event's file descriptor. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from eventxx::basic_event | |
basic_event () throw () | |
Timer event object.
This is just a special case of event that is fired only when a timeout is reached. It's just a shortcut to:
|
inline |
Creates a new timer event.
handler | Callback functor. |