DeleteCriticalSection(lock);
}
-static void
+static int
evthread_win32_lock(unsigned mode, void *_lock)
{
CRITICAL_SECTION *lock = _lock;
}
}
-static void
+static int
evthread_win32_unlock(unsigned mode, void *_lock)
{
CRITICAL_SECTION *lock = _lock;
- LeaveCriticalSection(lock)
+ LeaveCriticalSection(lock);
+ return 0;
}
static unsigned long
struct evthread_lock_callbacks cbs = {
EVTHREAD_LOCK_API_VERSION,
EVTHREAD_LOCKTYPE_RECURSIVE,
- evthread_win32_lock_alloc,
+ evthread_win32_lock_create,
evthread_win32_lock_free,
evthread_win32_lock,
evthread_win32_unlock
int evthread_use_pthreads(void);
#define EVTHREAD_USE_PTHREADS_IMPLEMENTED 1
+#endif
+
/* XXXXX */
void evthread_enable_lock_debuging(void);
-#endif
-
#endif /* _EVENT_DISABLE_THREAD_SUPPORT */
struct event_base;