Manual browser: event_compat(3)
event_compat(3) | Library Functions Manual | event_compat(3) |
NAME
event_compat -Potentially non-threadsafe versions of the functions in event.h: provided only for backwards compatibility.
SYNOPSIS
#include <event2/event_compat.h>Macros
#define EVENT_FD(ev) ((int)event_get_fd(ev))
timeout_* macros
These macros are deprecated because their naming is inconsistent with the rest of Libevent. Use the evtimer_* macros instead.
#define timeout_add(ev, tv) event_add((ev), (tv))
signal_* macros
These macros are deprecated because their naming is inconsistent with the rest of Libevent. Use the evsignal_* macros instead.
#define signal_add(ev, tv) event_add((ev), (tv))
Functions
int event_dispatch (void)
Detailed Description
Potentially non-threadsafe versions of the functions in event.h: provided only for backwards compatibility.Deprecated
All functions in this file are by definition deprecated.
Function Documentation
int event_dispatch (void)
Loop to process events. Like event_base_dispatch(), but uses the 'current' base.Deprecated
This function is deprecated because it is easily confused by multiple calls to event_init(), and because it is not safe for multithreaded use. The replacement is event_base_dispatch().
See Also:
event_base_dispatch(), event_init()
const char* event_get_method (void)
Get the kernel event notification mechanism used by Libevent. Deprecated
This function is obsolete, and has been replaced by event_base_get_method(). Its use is deprecated because it relies on the 'current' base configured by event_init().
See Also:
event_base_get_method()
struct event_base* event_init (void) [read]
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.Deprecated
This function is deprecated because it replaces the 'current' event_base, and is totally unsafe for multithreaded use. The replacement is event_base_new().
See Also:
event_base_set(), event_base_new()
int event_loop (int)
Handle events. This function behaves like event_base_loop(), but uses the 'current' baseDeprecated
This function is deprecated because it uses the event base from the last call to event_init, and is therefore not safe for multithreaded use. The replacement is event_base_loop().
See Also:
event_base_loop(), event_init()
int event_loopbreak (void)
Abort the active event_loop() immediately. This function behaves like event_base_loopbreakt(), except that it uses the 'current' base.Deprecated
This function is deprecated because it uses the event base from the last call to event_init, and is therefore not safe for multithreaded use. The replacement is event_base_loopbreak().
See Also:
event_base_loopbreak(), event_init()
int event_loopexit (const struct timeval *)
Exit the event loop after the specified time. This function behaves like event_base_loopexit(), except that it uses the 'current' base.Deprecated
This function is deprecated because it uses the event base from the last call to event_init, and is therefore not safe for multithreaded use. The replacement is event_base_loopexit().
See Also:
event_init, event_base_loopexit()
int event_once (evutil_socket_t, short, void(*)(evutil_socket_t, short, void *), void *, const struct timeval *)
Schedule a one-time event to occur. Deprecated
This function is obsolete, and has been replaced by event_base_once(). Its use is deprecated because it relies on the 'current' base configured by event_init().
See Also:
event_base_once()
int event_priority_init (int)
Set the number of different event priorities. Deprecated
This function is deprecated because it is easily confused by multiple calls to event_init(), and because it is not safe for multithreaded use. The replacement is event_base_priority_init().
See Also:
event_base_priority_init()
void event_set (struct event *, evutil_socket_t, short, void(*)(evutil_socket_t, short, void *), void *)
Prepare an event structure to be added. Deprecated
event_set() is not recommended for new code, because it requires a subsequent call to event_base_set() to be safe under most circumstances. Use event_assign() or event_new() instead.
Author
Generated automatically by Doxygen for libevent from the source code.Wed Apr 10 2013 | libevent |