Lines Matching refs:LOCK
168 # define glthread_lock_init(LOCK) \ argument
169 (pthread_in_use () ? pthread_mutex_init (LOCK, NULL) : 0)
170 # define glthread_lock_lock(LOCK) \ argument
171 (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0)
172 # define glthread_lock_unlock(LOCK) \ argument
173 (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0)
174 # define glthread_lock_destroy(LOCK) \ argument
175 (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0)
190 # define glthread_rwlock_init(LOCK) \ argument
191 (pthread_in_use () ? pthread_rwlock_init (LOCK, NULL) : 0)
192 # define glthread_rwlock_rdlock(LOCK) \ argument
193 (pthread_in_use () ? pthread_rwlock_rdlock (LOCK) : 0)
194 # define glthread_rwlock_wrlock(LOCK) \ argument
195 (pthread_in_use () ? pthread_rwlock_wrlock (LOCK) : 0)
196 # define glthread_rwlock_unlock(LOCK) \ argument
197 (pthread_in_use () ? pthread_rwlock_unlock (LOCK) : 0)
198 # define glthread_rwlock_destroy(LOCK) \ argument
199 (pthread_in_use () ? pthread_rwlock_destroy (LOCK) : 0)
216 # define glthread_rwlock_init(LOCK) \ argument
217 (pthread_in_use () ? glthread_rwlock_init_multithreaded (LOCK) : 0)
218 # define glthread_rwlock_rdlock(LOCK) \ argument
219 (pthread_in_use () ? glthread_rwlock_rdlock_multithreaded (LOCK) : 0)
220 # define glthread_rwlock_wrlock(LOCK) \ argument
221 (pthread_in_use () ? glthread_rwlock_wrlock_multithreaded (LOCK) : 0)
222 # define glthread_rwlock_unlock(LOCK) \ argument
223 (pthread_in_use () ? glthread_rwlock_unlock_multithreaded (LOCK) : 0)
224 # define glthread_rwlock_destroy(LOCK) \ argument
225 (pthread_in_use () ? glthread_rwlock_destroy_multithreaded (LOCK) : 0)
251 # define glthread_rwlock_init(LOCK) \ argument
252 (pthread_in_use () ? glthread_rwlock_init_multithreaded (LOCK) : 0)
253 # define glthread_rwlock_rdlock(LOCK) \ argument
254 (pthread_in_use () ? glthread_rwlock_rdlock_multithreaded (LOCK) : 0)
255 # define glthread_rwlock_wrlock(LOCK) \ argument
256 (pthread_in_use () ? glthread_rwlock_wrlock_multithreaded (LOCK) : 0)
257 # define glthread_rwlock_unlock(LOCK) \ argument
258 (pthread_in_use () ? glthread_rwlock_unlock_multithreaded (LOCK) : 0)
259 # define glthread_rwlock_destroy(LOCK) \ argument
260 (pthread_in_use () ? glthread_rwlock_destroy_multithreaded (LOCK) : 0)
287 # define glthread_recursive_lock_init(LOCK) \ argument
288 (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0)
289 # define glthread_recursive_lock_lock(LOCK) \ argument
290 (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0)
291 # define glthread_recursive_lock_unlock(LOCK) \ argument
292 (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0)
293 # define glthread_recursive_lock_destroy(LOCK) \ argument
294 (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0)
312 # define glthread_recursive_lock_init(LOCK) \ argument
313 (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0)
314 # define glthread_recursive_lock_lock(LOCK) \ argument
315 (pthread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0)
316 # define glthread_recursive_lock_unlock(LOCK) \ argument
317 (pthread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0)
318 # define glthread_recursive_lock_destroy(LOCK) \ argument
319 (pthread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0)
345 # define glthread_recursive_lock_init(LOCK) \ argument
346 (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0)
347 # define glthread_recursive_lock_lock(LOCK) \ argument
348 (pthread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0)
349 # define glthread_recursive_lock_unlock(LOCK) \ argument
350 (pthread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0)
351 # define glthread_recursive_lock_destroy(LOCK) \ argument
352 (pthread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0)
419 # define glthread_lock_init(LOCK) \ argument
420 (pth_in_use () && !pth_mutex_init (LOCK) ? errno : 0)
421 # define glthread_lock_lock(LOCK) \ argument
422 (pth_in_use () && !pth_mutex_acquire (LOCK, 0, NULL) ? errno : 0)
423 # define glthread_lock_unlock(LOCK) \ argument
424 (pth_in_use () && !pth_mutex_release (LOCK) ? errno : 0)
425 # define glthread_lock_destroy(LOCK) \ argument
426 ((void)(LOCK), 0)
437 # define glthread_rwlock_init(LOCK) \ argument
438 (pth_in_use () && !pth_rwlock_init (LOCK) ? errno : 0)
439 # define glthread_rwlock_rdlock(LOCK) \ argument
440 (pth_in_use () && !pth_rwlock_acquire (LOCK, PTH_RWLOCK_RD, 0, NULL) ? errno : 0)
441 # define glthread_rwlock_wrlock(LOCK) \ argument
442 (pth_in_use () && !pth_rwlock_acquire (LOCK, PTH_RWLOCK_RW, 0, NULL) ? errno : 0)
443 # define glthread_rwlock_unlock(LOCK) \ argument
444 (pth_in_use () && !pth_rwlock_release (LOCK) ? errno : 0)
445 # define glthread_rwlock_destroy(LOCK) \ argument
446 ((void)(LOCK), 0)
458 # define glthread_recursive_lock_init(LOCK) \ argument
459 (pth_in_use () && !pth_mutex_init (LOCK) ? errno : 0)
460 # define glthread_recursive_lock_lock(LOCK) \ argument
461 (pth_in_use () && !pth_mutex_acquire (LOCK, 0, NULL) ? errno : 0)
462 # define glthread_recursive_lock_unlock(LOCK) \ argument
463 (pth_in_use () && !pth_mutex_release (LOCK) ? errno : 0)
464 # define glthread_recursive_lock_destroy(LOCK) \ argument
465 ((void)(LOCK), 0)
531 # define glthread_lock_init(LOCK) \ argument
532 (thread_in_use () ? mutex_init (LOCK, USYNC_THREAD, NULL) : 0)
533 # define glthread_lock_lock(LOCK) \ argument
534 (thread_in_use () ? mutex_lock (LOCK) : 0)
535 # define glthread_lock_unlock(LOCK) \ argument
536 (thread_in_use () ? mutex_unlock (LOCK) : 0)
537 # define glthread_lock_destroy(LOCK) \ argument
538 (thread_in_use () ? mutex_destroy (LOCK) : 0)
549 # define glthread_rwlock_init(LOCK) \ argument
550 (thread_in_use () ? rwlock_init (LOCK, USYNC_THREAD, NULL) : 0)
551 # define glthread_rwlock_rdlock(LOCK) \ argument
552 (thread_in_use () ? rw_rdlock (LOCK) : 0)
553 # define glthread_rwlock_wrlock(LOCK) \ argument
554 (thread_in_use () ? rw_wrlock (LOCK) : 0)
555 # define glthread_rwlock_unlock(LOCK) \ argument
556 (thread_in_use () ? rw_unlock (LOCK) : 0)
557 # define glthread_rwlock_destroy(LOCK) \ argument
558 (thread_in_use () ? rwlock_destroy (LOCK) : 0)
578 # define glthread_recursive_lock_init(LOCK) \ argument
579 (thread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0)
580 # define glthread_recursive_lock_lock(LOCK) \ argument
581 (thread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0)
582 # define glthread_recursive_lock_unlock(LOCK) \ argument
583 (thread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0)
584 # define glthread_recursive_lock_destroy(LOCK) \ argument
585 (thread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0)
652 # define glthread_lock_init(LOCK) \ argument
653 (glthread_lock_init_func (LOCK), 0)
654 # define glthread_lock_lock(LOCK) \ argument
655 glthread_lock_lock_func (LOCK)
656 # define glthread_lock_unlock(LOCK) \ argument
657 glthread_lock_unlock_func (LOCK)
658 # define glthread_lock_destroy(LOCK) \ argument
659 glthread_lock_destroy_func (LOCK)
694 # define glthread_rwlock_init(LOCK) \ argument
695 (glthread_rwlock_init_func (LOCK), 0)
696 # define glthread_rwlock_rdlock(LOCK) \ argument
697 glthread_rwlock_rdlock_func (LOCK)
698 # define glthread_rwlock_wrlock(LOCK) \ argument
699 glthread_rwlock_wrlock_func (LOCK)
700 # define glthread_rwlock_unlock(LOCK) \ argument
701 glthread_rwlock_unlock_func (LOCK)
702 # define glthread_rwlock_destroy(LOCK) \ argument
703 glthread_rwlock_destroy_func (LOCK)
730 # define glthread_recursive_lock_init(LOCK) \ argument
731 (glthread_recursive_lock_init_func (LOCK), 0)
732 # define glthread_recursive_lock_lock(LOCK) \ argument
733 glthread_recursive_lock_lock_func (LOCK)
734 # define glthread_recursive_lock_unlock(LOCK) \ argument
735 glthread_recursive_lock_unlock_func (LOCK)
736 # define glthread_recursive_lock_destroy(LOCK) \ argument
737 glthread_recursive_lock_destroy_func (LOCK)