19 #ifndef WINPR_LIBWINPR_SYNCH_EVENT_H_
20 #define WINPR_LIBWINPR_SYNCH_EVENT_H_
22 #include "../handle/handle.h"
24 #include <winpr/config.h>
26 #ifdef WINPR_HAVE_SYS_EVENTFD_H
27 #include <sys/eventfd.h>
41 WINPR_EVENT_IMPL impl;
45 #if defined(WITH_DEBUG_EVENTS)
51 BOOL winpr_event_init(WINPR_EVENT_IMPL* event);
52 void winpr_event_init_from_fd(WINPR_EVENT_IMPL* event,
int fd);
53 BOOL winpr_event_set(WINPR_EVENT_IMPL* event);
54 BOOL winpr_event_reset(WINPR_EVENT_IMPL* event);
55 void winpr_event_uninit(WINPR_EVENT_IMPL* event);