Lines Matching defs:thread_in_use
727 # define thread_in_use() (thr_suspend != NULL)
731 # define thread_in_use() 1
747 if (thread_in_use () && mutex_init (&NAME, USYNC_THREAD, NULL) != 0) \
754 if (thread_in_use () && mutex_lock (&NAME) != 0) \
761 if (thread_in_use () && mutex_unlock (&NAME) != 0) \
768 if (thread_in_use () && mutex_destroy (&NAME) != 0) \
785 if (thread_in_use () && rwlock_init (&NAME, USYNC_THREAD, NULL) != 0) \
792 if (thread_in_use () && rw_rdlock (&NAME) != 0) \
799 if (thread_in_use () && rw_wrlock (&NAME) != 0) \
806 if (thread_in_use () && rw_unlock (&NAME) != 0) \
813 if (thread_in_use () && rwlock_destroy (&NAME) != 0) \
839 if (thread_in_use ()) \
846 if (thread_in_use ()) \
853 if (thread_in_use ()) \
860 if (thread_in_use ()) \
882 if (thread_in_use ()) \