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