Go to the documentation of this file.
26 #ifndef _EVENT2_THREAD_H_
27 #define _EVENT2_THREAD_H_
53 #include <event2/event-config.h>
62 #define EVTHREAD_WRITE 0x04
65 #define EVTHREAD_READ 0x08
69 #define EVTHREAD_TRY 0x10
72 #if !defined(_EVENT_DISABLE_THREAD_SUPPORT) || defined(_EVENT_IN_DOXYGEN)
74 #define EVTHREAD_LOCK_API_VERSION 1
83 #define EVTHREAD_LOCKTYPE_RECURSIVE 1
86 #define EVTHREAD_LOCKTYPE_READWRITE 2
107 void *(*alloc)(
unsigned locktype);
129 #define EVTHREAD_CONDITION_API_VERSION 1
145 void *(*alloc_condition)(
unsigned condtype);
166 const struct timeval *timeout);
188 unsigned long (*id_fn)(
void));
190 #if (defined(WIN32) && !defined(_EVENT_DISABLE_THREAD_SUPPORT)) || defined(_EVENT_IN_DOXYGEN)
199 #define EVTHREAD_USE_WINDOWS_THREADS_IMPLEMENTED 1
202 #if defined(_EVENT_HAVE_PTHREADS) || defined(_EVENT_IN_DOXYGEN)
210 #define EVTHREAD_USE_PTHREADS_IMPLEMENTED 1