Lines Matching defs:x
29 #define TSL_INIT(x)
30 #define TSL_SET(x) (!_check_lock(x, 0, 1))
31 #define TSL_UNSET(x) _clear_lock(x, 0)
47 #define TSL_INIT(x) (msem_init(x, MSEM_UNLOCKED) == NULL)
49 #define TSL_SET(x) (!msem_lock(x, MSEM_IF_NOWAIT))
50 #define TSL_UNSET(x) msem_unlock(x, 0)
54 #define TSL_INIT(x) initspin(x, 1)
55 #define TSL_SET(x) (cspinlock(x) == 0)
56 #define TSL_UNSET(x) spinunlock(x)
60 #define TSL_INIT(x) (init_lock(x) != 0)
62 #define TSL_SET(x) (!acquire_lock(x))
63 #define TSL_UNSET(x) release_lock(x)
70 * #define TSL_INIT(x) (sema_init(x, 1, USYNC_PROCESS, NULL) != 0)
72 * #define TSL_SET(x) (sema_wait(x) == 0)
73 * #define TSL_UNSET(x) sema_post(x)
75 #define TSL_INIT(x)
76 #define TSL_SET(x) (_lock_try(x))
77 #define TSL_UNSET(x) _lock_clear(x)
104 #define TSL_INIT(x)
105 #define TSL_SET(x) (!uts_lock(x, 1))
106 #define TSL_UNSET(x) (*(x) = 0)