Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 25 of 265) sorted by relevance

1234567891011

/freebsd-9-stable/contrib/gcc/config/i386/
Dgthr-win32.c147 __gthr_win32_mutex_init_function (__gthread_mutex_t *mutex) in __gthr_win32_mutex_init_function() argument
149 mutex->counter = -1; in __gthr_win32_mutex_init_function()
150 mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL); in __gthr_win32_mutex_init_function()
154 __gthr_win32_mutex_lock (__gthread_mutex_t *mutex) in __gthr_win32_mutex_lock() argument
156 if (InterlockedIncrement (&mutex->counter) == 0 || in __gthr_win32_mutex_lock()
157 WaitForSingleObject (mutex->sema, INFINITE) == WAIT_OBJECT_0) in __gthr_win32_mutex_lock()
163 InterlockedDecrement (&mutex->counter); in __gthr_win32_mutex_lock()
169 __gthr_win32_mutex_trylock (__gthread_mutex_t *mutex) in __gthr_win32_mutex_trylock() argument
171 if (__GTHR_W32_InterlockedCompareExchange (&mutex->counter, 0, -1) < 0) in __gthr_win32_mutex_trylock()
178 __gthr_win32_mutex_unlock (__gthread_mutex_t *mutex) in __gthr_win32_mutex_unlock() argument
[all …]
/freebsd-9-stable/contrib/gcc/
Dgthr-win32.h236 __gthread_objc_mutex_allocate (objc_mutex_t mutex) in __gthread_objc_mutex_allocate() argument
238 if ((mutex->backend = (void *) CreateMutex (NULL, 0, NULL)) == NULL) in __gthread_objc_mutex_allocate()
246 __gthread_objc_mutex_deallocate (objc_mutex_t mutex) in __gthread_objc_mutex_deallocate() argument
248 CloseHandle ((HANDLE) (mutex->backend)); in __gthread_objc_mutex_deallocate()
254 __gthread_objc_mutex_lock (objc_mutex_t mutex) in __gthread_objc_mutex_lock() argument
258 status = WaitForSingleObject ((HANDLE) (mutex->backend), INFINITE); in __gthread_objc_mutex_lock()
267 __gthread_objc_mutex_trylock (objc_mutex_t mutex) in __gthread_objc_mutex_trylock() argument
271 status = WaitForSingleObject ((HANDLE) (mutex->backend), 0); in __gthread_objc_mutex_trylock()
280 __gthread_objc_mutex_unlock (objc_mutex_t mutex) in __gthread_objc_mutex_unlock() argument
282 if (ReleaseMutex ((HANDLE) (mutex->backend)) == 0) in __gthread_objc_mutex_unlock()
[all …]
Dgthr-nks.h177 __gthread_objc_mutex_allocate (objc_mutex_t mutex) in __gthread_objc_mutex_allocate() argument
181 if ((mutex->backend = NXMutexAlloc (0, 0, &info)) == NULL) in __gthread_objc_mutex_allocate()
188 __gthread_objc_mutex_deallocate (objc_mutex_t mutex) in __gthread_objc_mutex_deallocate() argument
190 while (NXMutexIsOwned ((NXMutex_t *)mutex->backend)) in __gthread_objc_mutex_deallocate()
191 NXUnlock ((NXMutex_t *)mutex->backend); in __gthread_objc_mutex_deallocate()
192 if (NXMutexFree ((NXMutex_t *)mutex->backend) != 0) in __gthread_objc_mutex_deallocate()
194 mutex->backend = NULL; in __gthread_objc_mutex_deallocate()
200 __gthread_objc_mutex_lock (objc_mutex_t mutex) in __gthread_objc_mutex_lock() argument
202 return NXLock ((NXMutex_t *)mutex->backend); in __gthread_objc_mutex_lock()
207 __gthread_objc_mutex_trylock (objc_mutex_t mutex) in __gthread_objc_mutex_trylock() argument
[all …]
Dgthr-solaris.h50 mutex_t mutex; member
297 __gthread_objc_mutex_allocate (objc_mutex_t mutex) in __gthread_objc_mutex_allocate() argument
300 && __gthrw_(mutex_init) ((mutex_t *) (&(mutex->backend)), USYNC_THREAD, 0)) in __gthread_objc_mutex_allocate()
308 __gthread_objc_mutex_deallocate (objc_mutex_t mutex) in __gthread_objc_mutex_deallocate() argument
311 __gthrw_(mutex_destroy) ((mutex_t *) (&(mutex->backend))); in __gthread_objc_mutex_deallocate()
318 __gthread_objc_mutex_lock (objc_mutex_t mutex) in __gthread_objc_mutex_lock() argument
321 && __gthrw_(mutex_lock) ((mutex_t *) (&(mutex->backend))) != 0) in __gthread_objc_mutex_lock()
329 __gthread_objc_mutex_trylock (objc_mutex_t mutex) in __gthread_objc_mutex_trylock() argument
332 && __gthrw_(mutex_trylock) ((mutex_t *) (&(mutex->backend))) != 0) in __gthread_objc_mutex_trylock()
340 __gthread_objc_mutex_unlock (objc_mutex_t mutex) in __gthread_objc_mutex_unlock() argument
[all …]
Dgthr-posix95.h379 __gthread_objc_mutex_allocate (objc_mutex_t mutex) in __gthread_objc_mutex_allocate() argument
383 mutex->backend = objc_malloc (sizeof (pthread_mutex_t)); in __gthread_objc_mutex_allocate()
385 if (__gthrw_(pthread_mutex_init) ((pthread_mutex_t *) mutex->backend, NULL)) in __gthread_objc_mutex_allocate()
387 objc_free (mutex->backend); in __gthread_objc_mutex_allocate()
388 mutex->backend = NULL; in __gthread_objc_mutex_allocate()
398 __gthread_objc_mutex_deallocate (objc_mutex_t mutex) in __gthread_objc_mutex_deallocate() argument
411 count = __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend); in __gthread_objc_mutex_deallocate()
417 if (__gthrw_(pthread_mutex_destroy) ((pthread_mutex_t *) mutex->backend)) in __gthread_objc_mutex_deallocate()
420 objc_free (mutex->backend); in __gthread_objc_mutex_deallocate()
421 mutex->backend = NULL; in __gthread_objc_mutex_deallocate()
[all …]
Dgthr-rtems.h65 extern void rtems_gxx_mutex_init (__gthread_mutex_t *mutex);
66 extern int rtems_gxx_mutex_lock (__gthread_mutex_t *mutex);
67 extern int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex);
68 extern int rtems_gxx_mutex_unlock (__gthread_mutex_t *mutex);
71 extern void rtems_gxx_recursive_mutex_init (__gthread_recursive_mutex_t *mutex);
72 extern int rtems_gxx_recursive_mutex_lock (__gthread_recursive_mutex_t *mutex);
73 extern int rtems_gxx_recursive_mutex_trylock (__gthread_recursive_mutex_t *mutex);
74 extern int rtems_gxx_recursive_mutex_unlock (__gthread_recursive_mutex_t *mutex);
115 __gthread_mutex_lock (__gthread_mutex_t *mutex) in __gthread_mutex_lock() argument
117 return rtems_gxx_mutex_lock (mutex); in __gthread_mutex_lock()
[all …]
Dgthr-dce.h302 __gthread_objc_mutex_allocate (objc_mutex_t mutex) in __gthread_objc_mutex_allocate() argument
306 mutex->backend = objc_malloc (sizeof (pthread_mutex_t)); in __gthread_objc_mutex_allocate()
308 if (__gthrw_(pthread_mutex_init) ((pthread_mutex_t *) mutex->backend, in __gthread_objc_mutex_allocate()
311 objc_free (mutex->backend); in __gthread_objc_mutex_allocate()
312 mutex->backend = NULL; in __gthread_objc_mutex_allocate()
322 __gthread_objc_mutex_deallocate (objc_mutex_t mutex) in __gthread_objc_mutex_deallocate() argument
326 if (__gthrw_(pthread_mutex_destroy) ((pthread_mutex_t *) mutex->backend)) in __gthread_objc_mutex_deallocate()
329 objc_free (mutex->backend); in __gthread_objc_mutex_deallocate()
330 mutex->backend = NULL; in __gthread_objc_mutex_deallocate()
338 __gthread_objc_mutex_lock (objc_mutex_t mutex) in __gthread_objc_mutex_lock() argument
[all …]
Dgthr-vxworks.h54 __gthread_mutex_init_function (__gthread_mutex_t *mutex) in __gthread_mutex_init_function() argument
56 *mutex = semMCreate (SEM_Q_PRIORITY | SEM_INVERSION_SAFE | SEM_DELETE_SAFE); in __gthread_mutex_init_function()
60 __gthread_mutex_lock (__gthread_mutex_t *mutex) in __gthread_mutex_lock() argument
62 return semTake (*mutex, WAIT_FOREVER); in __gthread_mutex_lock()
66 __gthread_mutex_trylock (__gthread_mutex_t *mutex) in __gthread_mutex_trylock() argument
68 return semTake (*mutex, NO_WAIT); in __gthread_mutex_trylock()
72 __gthread_mutex_unlock (__gthread_mutex_t *mutex) in __gthread_mutex_unlock() argument
74 return semGive (*mutex); in __gthread_mutex_unlock()
78 __gthread_recursive_mutex_init_function (__gthread_recursive_mutex_t *mutex) in __gthread_recursive_mutex_init_function() argument
80 __gthread_mutex_init_function (mutex); in __gthread_recursive_mutex_init_function()
[all …]
Dgthr-posix.h419 __gthread_objc_mutex_allocate (objc_mutex_t mutex) in __gthread_objc_mutex_allocate() argument
423 mutex->backend = objc_malloc (sizeof (pthread_mutex_t)); in __gthread_objc_mutex_allocate()
425 if (__gthrw_(pthread_mutex_init) ((pthread_mutex_t *) mutex->backend, NULL)) in __gthread_objc_mutex_allocate()
427 objc_free (mutex->backend); in __gthread_objc_mutex_allocate()
428 mutex->backend = NULL; in __gthread_objc_mutex_allocate()
438 __gthread_objc_mutex_deallocate (objc_mutex_t mutex) in __gthread_objc_mutex_deallocate() argument
451 count = __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend); in __gthread_objc_mutex_deallocate()
457 if (__gthrw_(pthread_mutex_destroy) ((pthread_mutex_t *) mutex->backend)) in __gthread_objc_mutex_deallocate()
460 objc_free (mutex->backend); in __gthread_objc_mutex_deallocate()
461 mutex->backend = NULL; in __gthread_objc_mutex_deallocate()
[all …]
Dgthr-single.h137 __gthread_objc_mutex_allocate (objc_mutex_t UNUSED(mutex)) in __gthread_objc_mutex_allocate() argument
144 __gthread_objc_mutex_deallocate (objc_mutex_t UNUSED(mutex)) in __gthread_objc_mutex_deallocate() argument
151 __gthread_objc_mutex_lock (objc_mutex_t UNUSED(mutex)) in __gthread_objc_mutex_lock() argument
159 __gthread_objc_mutex_trylock (objc_mutex_t UNUSED(mutex)) in __gthread_objc_mutex_trylock() argument
167 __gthread_objc_mutex_unlock (objc_mutex_t UNUSED(mutex)) in __gthread_objc_mutex_unlock() argument
191 objc_mutex_t UNUSED(mutex)) in __gthread_objc_condition_wait() argument
219 __gthread_mutex_lock (__gthread_mutex_t * UNUSED(mutex)) in __gthread_mutex_lock() argument
225 __gthread_mutex_trylock (__gthread_mutex_t * UNUSED(mutex)) in __gthread_mutex_trylock() argument
231 __gthread_mutex_unlock (__gthread_mutex_t * UNUSED(mutex)) in __gthread_mutex_unlock() argument
237 __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *mutex) in __gthread_recursive_mutex_lock() argument
[all …]
Dgthr-tpf.h148 __gthread_mutex_lock (__gthread_mutex_t *mutex) in __gthread_mutex_lock() argument
151 return __gthrw_(pthread_mutex_lock) (mutex); in __gthread_mutex_lock()
157 __gthread_mutex_trylock (__gthread_mutex_t *mutex) in __gthread_mutex_trylock() argument
160 return __gthrw_(pthread_mutex_trylock) (mutex); in __gthread_mutex_trylock()
166 __gthread_mutex_unlock (__gthread_mutex_t *mutex) in __gthread_mutex_unlock() argument
169 return __gthrw_(pthread_mutex_unlock) (mutex); in __gthread_mutex_unlock()
175 __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *mutex) in __gthread_recursive_mutex_lock() argument
178 return __gthread_mutex_lock (mutex); in __gthread_recursive_mutex_lock()
184 __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *mutex) in __gthread_recursive_mutex_trylock() argument
187 return __gthread_mutex_trylock (mutex); in __gthread_recursive_mutex_trylock()
[all …]
/freebsd-9-stable/lib/libkse/test/
Dmutex_d.exp24 Destruction of unused mutex - PASS
25 Destruction of mutex locked by self - PASS
26 Destruction of mutex locked by another thread - PASS
27 Destruction of mutex while being used in cond_wait - PASS
29 Destruction of unused mutex - PASS
30 Destruction of mutex locked by self - PASS
31 Destruction of mutex locked by another thread - PASS
32 Destruction of mutex while being used in cond_wait - PASS
34 Destruction of unused mutex - PASS
35 Destruction of mutex locked by self - PASS
[all …]
/freebsd-9-stable/lib/libkse/thread/
Dthr_mutex.c91 int __pthread_mutex_init(pthread_mutex_t *mutex,
93 int __pthread_mutex_trylock(pthread_mutex_t *mutex);
97 int _pthread_mutex_init_calloc_cb(pthread_mutex_t *mutex,
117 thr_mutex_init(pthread_mutex_t *mutex, in thr_mutex_init() argument
127 if (mutex == NULL) in thr_mutex_init()
167 *mutex = NULL; in thr_mutex_init()
208 *mutex = pmutex; in thr_mutex_init()
212 *mutex = NULL; in thr_mutex_init()
221 __pthread_mutex_init(pthread_mutex_t *mutex, in __pthread_mutex_init() argument
225 return (thr_mutex_init(mutex, mutex_attr, calloc)); in __pthread_mutex_init()
[all …]
Dthr_mutex_prioceiling.c79 _pthread_mutex_getprioceiling(pthread_mutex_t *mutex, in _pthread_mutex_getprioceiling() argument
84 if ((mutex == NULL) || (*mutex == NULL)) in _pthread_mutex_getprioceiling()
86 else if ((*mutex)->m_protocol != PTHREAD_PRIO_PROTECT) in _pthread_mutex_getprioceiling()
89 *prioceiling = (*mutex)->m_prio; in _pthread_mutex_getprioceiling()
96 _pthread_mutex_setprioceiling(pthread_mutex_t *mutex, in _pthread_mutex_setprioceiling() argument
102 if ((mutex == NULL) || (*mutex == NULL)) in _pthread_mutex_setprioceiling()
104 else if ((*mutex)->m_protocol != PTHREAD_PRIO_PROTECT) in _pthread_mutex_setprioceiling()
107 else if ((ret = _pthread_mutex_lock(mutex)) == 0) { in _pthread_mutex_setprioceiling()
108 tmp = (*mutex)->m_prio; in _pthread_mutex_setprioceiling()
110 (*mutex)->m_prio = prioceiling; in _pthread_mutex_setprioceiling()
[all …]
Dthr_cond.c54 int __pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
55 int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
176 _pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) in _pthread_cond_wait() argument
225 if ((mutex == NULL) || (((*cond)->c_mutex != NULL) && in _pthread_cond_wait()
226 ((*cond)->c_mutex != *mutex))) { in _pthread_cond_wait()
245 ((rval = _mutex_cv_unlock(mutex)) != 0)) { in _pthread_cond_wait()
255 (*cond)->c_mutex = *mutex; in _pthread_cond_wait()
305 NULL, mutex); in _pthread_cond_wait()
306 return (_mutex_cv_lock(mutex)); in _pthread_cond_wait()
343 mutex_locked ? NULL : mutex); in _pthread_cond_wait()
[all …]
/freebsd-9-stable/contrib/openbsm/libbsm/
Dbsm_control.c68 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
325 pthread_mutex_lock(&mutex); in setac()
329 pthread_mutex_unlock(&mutex); in setac()
341 pthread_mutex_lock(&mutex); in endac()
349 pthread_mutex_unlock(&mutex); in endac()
367 pthread_mutex_lock(&mutex); in getacdir()
377 pthread_mutex_unlock(&mutex); in getacdir()
383 pthread_mutex_unlock(&mutex); in getacdir()
389 pthread_mutex_unlock(&mutex); in getacdir()
395 pthread_mutex_unlock(&mutex); in getacdir()
[all …]
Dbsm_class.c57 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
141 pthread_mutex_lock(&mutex); in getauclassent_r()
145 pthread_mutex_unlock(&mutex); in getauclassent_r()
164 pthread_mutex_lock(&mutex); in getauclassent()
168 pthread_mutex_unlock(&mutex); in getauclassent()
191 pthread_mutex_lock(&mutex); in setauclass()
195 pthread_mutex_unlock(&mutex); in setauclass()
211 pthread_mutex_lock(&mutex); in getauclassnam_r()
217 pthread_mutex_unlock(&mutex); in getauclassnam_r()
223 pthread_mutex_unlock(&mutex); in getauclassnam_r()
[all …]
/freebsd-9-stable/contrib/llvm/lib/Support/
DMutex.cpp48 pthread_mutex_t* mutex = in MutexImpl() local
70 errorcode = pthread_mutex_init(mutex, &attr); in MutexImpl()
78 data_ = mutex; in MutexImpl()
84 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in ~MutexImpl() local
85 assert(mutex != 0); in ~MutexImpl()
86 pthread_mutex_destroy(mutex); in ~MutexImpl()
87 free(mutex); in ~MutexImpl()
93 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in acquire() local
94 assert(mutex != 0); in acquire()
96 int errorcode = pthread_mutex_lock(mutex); in acquire()
[all …]
/freebsd-9-stable/contrib/gcclibs/libgomp/config/linux/
Dmutex.h39 static inline void gomp_mutex_init (gomp_mutex_t *mutex) in gomp_mutex_init() argument
41 *mutex = 0; in gomp_mutex_init()
44 extern void gomp_mutex_lock_slow (gomp_mutex_t *mutex);
45 static inline void gomp_mutex_lock (gomp_mutex_t *mutex) in gomp_mutex_lock() argument
47 if (!__sync_bool_compare_and_swap (mutex, 0, 1)) in gomp_mutex_lock()
48 gomp_mutex_lock_slow (mutex); in gomp_mutex_lock()
51 extern void gomp_mutex_unlock_slow (gomp_mutex_t *mutex);
52 static inline void gomp_mutex_unlock (gomp_mutex_t *mutex) in gomp_mutex_unlock() argument
54 int val = __sync_lock_test_and_set (mutex, 0); in gomp_mutex_unlock()
56 gomp_mutex_unlock_slow (mutex); in gomp_mutex_unlock()
[all …]
/freebsd-9-stable/lib/libthr/thread/
Dthr_mutex.c77 int __pthread_mutex_init(pthread_mutex_t *mutex,
79 int __pthread_mutex_trylock(pthread_mutex_t *mutex);
80 int __pthread_mutex_lock(pthread_mutex_t *mutex);
81 int __pthread_mutex_timedlock(pthread_mutex_t *mutex,
83 int _pthread_mutex_init_calloc_cb(pthread_mutex_t *mutex,
85 int _pthread_mutex_getspinloops_np(pthread_mutex_t *mutex, int *count);
86 int _pthread_mutex_setspinloops_np(pthread_mutex_t *mutex, int count);
87 int __pthread_mutex_setspinloops_np(pthread_mutex_t *mutex, int count);
88 int _pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count);
89 int _pthread_mutex_getyieldloops_np(pthread_mutex_t *mutex, int *count);
[all …]
/freebsd-9-stable/contrib/gcclibs/libgomp/config/posix/
Dmutex.h40 static inline void gomp_mutex_init (gomp_mutex_t *mutex) in gomp_mutex_init() argument
42 pthread_mutex_init (mutex, NULL); in gomp_mutex_init()
45 static inline void gomp_mutex_lock (gomp_mutex_t *mutex) in gomp_mutex_lock() argument
47 pthread_mutex_lock (mutex); in gomp_mutex_lock()
50 static inline void gomp_mutex_unlock (gomp_mutex_t *mutex) in gomp_mutex_unlock() argument
52 pthread_mutex_unlock (mutex); in gomp_mutex_unlock()
55 static inline void gomp_mutex_destroy (gomp_mutex_t *mutex) in gomp_mutex_destroy() argument
57 pthread_mutex_destroy (mutex); in gomp_mutex_destroy()
Dsem.c45 ret = pthread_mutex_init (&sem->mutex, NULL); in gomp_sem_init()
60 ret = pthread_mutex_lock (&sem->mutex); in gomp_sem_wait()
67 ret = pthread_mutex_unlock (&sem->mutex); in gomp_sem_wait()
73 ret = pthread_cond_wait (&sem->cond, &sem->mutex); in gomp_sem_wait()
76 pthread_mutex_unlock (&sem->mutex); in gomp_sem_wait()
82 ret = pthread_mutex_unlock (&sem->mutex); in gomp_sem_wait()
90 ret = pthread_mutex_lock (&sem->mutex); in gomp_sem_post()
96 ret = pthread_mutex_unlock (&sem->mutex); in gomp_sem_post()
109 ret = pthread_mutex_destroy (&sem->mutex); in gomp_sem_destroy()
/freebsd-9-stable/sys/fs/nfsserver/
Dnfs_nfsdcache.c375 struct mtx *mutex; in nfsrc_getudp() local
377 mutex = nfsrc_cachemutex(newrp); in nfsrc_getudp()
380 mtx_lock(mutex); in nfsrc_getudp()
388 (void)mtx_sleep(rp, mutex, (PZERO - 1) | PDROP, in nfsrc_getudp()
399 mtx_unlock(mutex); in nfsrc_getudp()
406 mtx_unlock(mutex); in nfsrc_getudp()
414 mtx_unlock(mutex); in nfsrc_getudp()
444 mtx_unlock(mutex); in nfsrc_getudp()
462 struct mtx *mutex; in nfsrvd_updatecache() local
468 mutex = nfsrc_cachemutex(rp); in nfsrvd_updatecache()
[all …]
/freebsd-9-stable/contrib/ofed/management/opensm/complib/
Dcl_timer.c56 pthread_mutex_t mutex; member
85 pthread_mutex_init(&gp_timer_prov->mutex, NULL); in __cl_timer_prov_create()
105 pthread_mutex_lock(&gp_timer_prov->mutex); in __cl_timer_prov_destroy()
108 pthread_mutex_unlock(&gp_timer_prov->mutex); in __cl_timer_prov_destroy()
112 pthread_mutex_destroy(&gp_timer_prov->mutex); in __cl_timer_prov_destroy()
128 pthread_mutex_lock(&gp_timer_prov->mutex); in __cl_timer_prov_cb()
143 &gp_timer_prov->mutex); in __cl_timer_prov_cb()
154 &gp_timer_prov->mutex, in __cl_timer_prov_cb()
183 pthread_mutex_unlock(&gp_timer_prov->mutex); in __cl_timer_prov_cb()
188 pthread_mutex_lock(&gp_timer_prov->mutex); in __cl_timer_prov_cb()
[all …]
Dcl_event.c60 pthread_mutex_init(&p_event->mutex, NULL); in cl_event_init()
76 pthread_mutex_destroy(&p_event->mutex); in cl_event_destroy()
87 pthread_mutex_lock(&p_event->mutex); in cl_event_signal()
95 pthread_mutex_unlock(&p_event->mutex); in cl_event_signal()
105 pthread_mutex_lock(&p_event->mutex); in cl_event_reset()
107 pthread_mutex_unlock(&p_event->mutex); in cl_event_reset()
124 pthread_mutex_lock(&p_event->mutex); in cl_event_wait_on()
131 pthread_mutex_unlock(&p_event->mutex); in cl_event_wait_on()
137 pthread_mutex_unlock(&p_event->mutex); in cl_event_wait_on()
144 (&p_event->condvar, &p_event->mutex)) in cl_event_wait_on()
[all …]

1234567891011