Lines Matching refs:thread_in_use
519 # define thread_in_use() (thr_suspend != NULL) macro
523 # define thread_in_use() 1
537 if (thread_in_use () && mutex_init (&NAME, USYNC_THREAD, NULL) != 0) abort ()
539 if (thread_in_use () && mutex_lock (&NAME) != 0) abort ()
541 if (thread_in_use () && mutex_unlock (&NAME) != 0) abort ()
543 if (thread_in_use () && mutex_destroy (&NAME) != 0) abort ()
555 if (thread_in_use () && rwlock_init (&NAME, USYNC_THREAD, NULL) != 0) abort ()
557 if (thread_in_use () && rw_rdlock (&NAME) != 0) abort ()
559 if (thread_in_use () && rw_wrlock (&NAME) != 0) abort ()
561 if (thread_in_use () && rw_unlock (&NAME) != 0) abort ()
563 if (thread_in_use () && rwlock_destroy (&NAME) != 0) abort ()
584 if (thread_in_use ()) glthread_recursive_lock_init (&NAME)
586 if (thread_in_use ()) glthread_recursive_lock_lock (&NAME)
588 if (thread_in_use ()) glthread_recursive_lock_unlock (&NAME)
590 if (thread_in_use ()) glthread_recursive_lock_destroy (&NAME)
609 if (thread_in_use ()) \