Lines Matching +full:wait +full:- +full:free +full:- +full:us

2  * Copyright (c) 2008-2012 Niels Provos, Nick Mathewson
33 #include "event2/event-config.h"
34 #include "evconfig-private.h"
37 #include "util-internal.h"
42 /* On Windows, the way we currently make DLLs, it's not allowed for us to
43 * have shared global structures. Thus, we only do the direct-call-to-function
50 /* Global function pointers to lock-related functions. NULL if locking isn't
68 (base)->th_owner_id == evthread_id_fn_())
75 (base)->running_loop && \
76 (base)->th_owner_id != evthread_id_fn_())
84 /** Free a given lock, if it is present and locking is enabled. */
88 if (lock_tmp_ && evthread_lock_fns_.free) \
89 evthread_lock_fns_.free(lock_tmp_, (locktype)); \
119 EVLOCK_LOCK((base)->lockvar, 0); \
124 EVLOCK_UNLOCK((base)->lockvar, 0); \
127 /** If lock debugging is enabled, and lock is non-null, assert that 'lock' is
128 * locked and held by us. */
158 /** Deallocate and free a condition variable in condvar */
170 /** Wait until the condition 'cond' is signalled. Must be called while
173 * success, -1 for failure. */
210 ((base)->th_owner_id == evthreadimpl_get_id_())
212 ((base)->running_loop && \
213 ((base)->th_owner_id != evthreadimpl_get_id_()))
242 EVLOCK_LOCK((base)->lockvar, 0); \
247 EVLOCK_UNLOCK((base)->lockvar, 0); \
250 /** If lock debugging is enabled, and lock is non-null, assert that 'lock' is
251 * locked and held by us. */
280 /** Deallocate and free a condition variable in condvar */
292 /** Wait until the condition 'cond' is signalled. Must be called while
295 * success, -1 for failure. */
383 return -1; \