eventxx  1.0.1
eventxx::signal< ccallback_type > Struct Reference

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

Inheritance diagram for eventxx::signal< ccallback_type >:

Public Member Functions

 signal (int signum, ccallback_type handler, void *arg=0) throw ()
 Creates a new signal event. More...
 
int signum () const
 Event's signal number. 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::signal for C-style callbacks.

Note
This event always eventxx::PERSIST.
See also
signal
Examples
c-way.cpp.

Constructor & Destructor Documentation

◆ signal()

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

Creates a new signal event.

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

References eventxx::signal< F >::signum().

Member Function Documentation

◆ signum()

int eventxx::signal< ccallback_type >::signum ( ) const
inline

Event's signal number.

Returns
Event's signal number.

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