Lines Matching +full:config +full:- +full:cond
2 * Copyright 2009-2012 Niels Provos and Nick Mathewson
26 #include "event2/event-config.h"
27 #include "evconfig-private.h"
30 * This comes from evconfig-private.h
39 #include "mm-internal.h"
40 #include "evthread-internal.h"
106 pthread_cond_t *cond = mm_malloc(sizeof(pthread_cond_t)); in evthread_posix_cond_alloc() local
107 if (!cond) in evthread_posix_cond_alloc()
109 if (pthread_cond_init(cond, NULL)) { in evthread_posix_cond_alloc()
110 mm_free(cond); in evthread_posix_cond_alloc()
113 return cond; in evthread_posix_cond_alloc()
119 pthread_cond_t *cond = cond_; in evthread_posix_cond_free() local
120 pthread_cond_destroy(cond); in evthread_posix_cond_free()
121 mm_free(cond); in evthread_posix_cond_free()
127 pthread_cond_t *cond = cond_; in evthread_posix_cond_signal() local
130 r = pthread_cond_broadcast(cond); in evthread_posix_cond_signal()
132 r = pthread_cond_signal(cond); in evthread_posix_cond_signal()
133 return r ? -1 : 0; in evthread_posix_cond_signal()
140 pthread_cond_t *cond = cond_; in evthread_posix_cond_wait() local
150 r = pthread_cond_timedwait(cond, lock, &ts); in evthread_posix_cond_wait()
154 return -1; in evthread_posix_cond_wait()
158 r = pthread_cond_wait(cond, lock); in evthread_posix_cond_wait()
159 return r ? -1 : 0; in evthread_posix_cond_wait()
183 return -1; in evthread_use_pthreads()
185 return -1; in evthread_use_pthreads()