Potentially non-threadsafe versions of the functions in event.h: provided only for backwards compatibility. More...
Go to the source code of this file.
Use the evtimer_* macros instead.
Use the evsignal_* macros instead.
Potentially non-threadsafe versions of the functions in event.h: provided only for backwards compatibility.
In the oldest versions of Libevent, event_base was not a first-class structure. Instead, there was a single event base that every function manipulated. Later, when separate event bases were added, the old functions that didn't take an event_base argument needed to work by manipulating the "current" event base. This could lead to thread-safety issues, and obscure, hard-to-diagnose bugs.
Loop to process events.
Like event_base_dispatch(), but uses the "current" base.
Get the kernel event notification mechanism used by Libevent.
Initialize the event API.
The event API needs to be initialized with event_init() before it can be used. Sets the global current base that gets used for events that have no base associated with them.
Handle events.
This function behaves like event_base_loop(), but uses the "current" base
Abort the active event_loop() immediately.
This function behaves like event_base_loopbreakt(), except that it uses the "current" base.
Exit the event loop after the specified time.
This function behaves like event_base_loopexit(), except that it uses the "current" base.
Schedule a one-time event to occur.
Set the number of different event priorities.
Prepare an event structure to be added.