Lines Matching refs:thread_in_use
520 # define thread_in_use() (thr_suspend != NULL) macro
524 # define thread_in_use() 1
538 if (thread_in_use () && mutex_init (&NAME, USYNC_THREAD, NULL) != 0) abort ()
540 if (thread_in_use () && mutex_lock (&NAME) != 0) abort ()
542 if (thread_in_use () && mutex_unlock (&NAME) != 0) abort ()
544 if (thread_in_use () && mutex_destroy (&NAME) != 0) abort ()
556 if (thread_in_use () && rwlock_init (&NAME, USYNC_THREAD, NULL) != 0) abort ()
558 if (thread_in_use () && rw_rdlock (&NAME) != 0) abort ()
560 if (thread_in_use () && rw_wrlock (&NAME) != 0) abort ()
562 if (thread_in_use () && rw_unlock (&NAME) != 0) abort ()
564 if (thread_in_use () && rwlock_destroy (&NAME) != 0) abort ()
585 if (thread_in_use ()) glthread_recursive_lock_init (&NAME)
587 if (thread_in_use ()) glthread_recursive_lock_lock (&NAME)
589 if (thread_in_use ()) glthread_recursive_lock_unlock (&NAME)
591 if (thread_in_use ()) glthread_recursive_lock_destroy (&NAME)
610 if (thread_in_use ()) \