Lines Matching refs:th
61 #define ulock_ownership_set(ul, th) \
63 thread_mtx_lock(th); \
64 enqueue (&th->held_ulocks, (queue_entry_t) (ul)); \
65 thread_mtx_unlock(th); \
66 (ul)->holder = th; \
71 thread_t th; \
72 th = (ul)->holder; \
73 if (th->active) { \
74 thread_mtx_lock(th); \
75 remqueue(&th->held_ulocks, \
77 thread_mtx_unlock(th); \
79 remqueue(&th->held_ulocks, \