eventxx  1.0.1
eventxx::timer< ccallback_type > Struct Reference

This is the specialization of eventxx::timer for C-style callbacks. More...

Inheritance diagram for eventxx::timer< ccallback_type >:

Public Member Functions

 timer (ccallback_type handler, void *arg=0) throw ()
 Creates a new timer event. More...
 
- Public Member Functions inherited from eventxx::event< ccallback_type >
 event (int fd, type ev, ccallback_type handler, void *arg=0) 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 ()
 

Detailed Description

This is the specialization of eventxx::timer for C-style callbacks.

Note
This event can't eventxx::PERSIST.
See also
timer
Examples
mixed-way.cpp, and test-time.cpp.

Constructor & Destructor Documentation

◆ timer()

eventxx::timer< ccallback_type >::timer ( ccallback_type  handler,
void *  arg = 0 
)
throw (
)
inline

Creates a new timer event.

Parameters
handlerC-style callback function.
argArbitrary pointer to pass to the handler as argument.

The documentation for this struct was generated from the following file: