Lines Matching refs:_rwlock
93 #define DECLRWLOCK(var) __nisdb_rwlock_t var ## _rwlock = \
95 #define USERWLOCK(var) extern __nisdb_rwlock_t var ## _rwlock
96 #define STRUCTRWLOCK(var) __nisdb_rwlock_t var ## _rwlock
97 #define INITRW(var) (void) __nisdb_rwinit(&var ## _rwlock)
98 #define READLOCKOK(var) (void) __nisdb_rw_readlock_ok(&var ## _rwlock)
99 #define RLOCK(var) __nisdb_rlock(&var ## _rwlock)
100 #define WLOCK(var) __nisdb_wlock(&var ## _rwlock)
101 #define TRYWLOCK(var) __nisdb_wlock_trylock(&var ## _rwlock, 1)
102 #define RULOCK(var) __nisdb_rulock(&var ## _rwlock)
103 #define WULOCK(var) __nisdb_wulock(&var ## _rwlock)
104 #define DESTROYRW(var) __nisdb_destroy_lock(&var ## _rwlock)
105 #define ASSERTWHELD(var) if (__nisdb_assert_wheld(&var ## _rwlock) \
108 #define ASSERTRHELD(var) if (__nisdb_assert_rheld(&var ## _rwlock) \
122 #define DECLRWLOCK(var) __nisdb_rwlock_t var ## _rwlock = \
124 #define USERWLOCK(var) extern __nisdb_rwlock_t var ## _rwlock
125 #define STRUCTRWLOCK(var) __nisdb_rwlock_t var ## _rwlock
126 #define INITRW(var) (void) __nisdb_rwinit(&var ## _rwlock)
127 #define READLOCKOK(var) (void) __nisdb_rw_readlock_ok(&var ## _rwlock)
128 #define RLOCK(var) __nisdb_rlock(&var ## _rwlock)
129 #define WLOCK(var) __nisdb_wlock(&var ## _rwlock)
130 #define TRYWLOCK(var) __nisdb_wlock_trylock(&var ## _rwlock, 1)
131 #define RULOCK(var) __nisdb_rulock(&var ## _rwlock)
132 #define WULOCK(var) __nisdb_wulock(&var ## _rwlock)
133 #define DESTROYRW(var) __nisdb_destroy_lock(&var ## _rwlock)