Lines Matching defs:var
72 #define DECLMUTEXLOCK(var) pthread_mutex_t var ## _pmutex = \ argument
75 #define USEMUTEXLOCK(var) extern pthread_mutex_t var ## _pmutex; \ argument
77 #define STRUCTMUTEXLOCK(var) pthread_mutex_t var ## _pmutex; \ argument
79 #define INITMUTEX(var) (void) pthread_mutex_init(&var ## _pmutex, 0) argument
80 #define MUTEXLOCK(var, msg) if (var ## _owner != pthread_self()) { \ argument
85 #define MUTEXUNLOCK(var, msg) if (var ## _owner == pthread_self()) { \ argument
90 #define ASSERTMUTEXHELD(var) if (var ## _owner != pthread_self()) \ argument
93 #define DECLRWLOCK(var) __nisdb_rwlock_t var ## _rwlock = \ argument
95 #define USERWLOCK(var) extern __nisdb_rwlock_t var ## _rwlock argument
96 #define STRUCTRWLOCK(var) __nisdb_rwlock_t var ## _rwlock argument
97 #define INITRW(var) (void) __nisdb_rwinit(&var ## _rwlock) argument
98 #define READLOCKOK(var) (void) __nisdb_rw_readlock_ok(&var ## _rwlock) argument
99 #define RLOCK(var) __nisdb_rlock(&var ## _rwlock) argument
100 #define WLOCK(var) __nisdb_wlock(&var ## _rwlock) argument
101 #define TRYWLOCK(var) __nisdb_wlock_trylock(&var ## _rwlock, 1) argument
102 #define RULOCK(var) __nisdb_rulock(&var ## _rwlock) argument
103 #define WULOCK(var) __nisdb_wulock(&var ## _rwlock) argument
104 #define DESTROYRW(var) __nisdb_destroy_lock(&var ## _rwlock) argument
105 #define ASSERTWHELD(var) if (__nisdb_assert_wheld(&var ## _rwlock) \ argument
108 #define ASSERTRHELD(var) if (__nisdb_assert_rheld(&var ## _rwlock) \ argument