Home
last modified time | relevance | path

Searched refs:LOCKRET (Results 1 – 5 of 5) sorted by relevance

/netbsd-src/external/bsd/unbound/dist/util/
H A Dlocks.h60 #ifndef LOCKRET
67 #define LOCKRET(func) do {\ macro
100 #define lock_basic_init(lock) LOCKRET(pthread_mutex_init(lock, NULL))
101 #define lock_basic_destroy(lock) LOCKRET(pthread_mutex_destroy(lock))
102 #define lock_basic_lock(lock) LOCKRET(pthread_mutex_lock(lock))
103 #define lock_basic_unlock(lock) LOCKRET(pthread_mutex_unlock(lock))
108 #define lock_rw_init(lock) LOCKRET(pthread_mutex_init(lock, NULL))
109 #define lock_rw_destroy(lock) LOCKRET(pthread_mutex_destroy(lock))
110 #define lock_rw_rdlock(lock) LOCKRET(pthread_mutex_lock(lock))
111 #define lock_rw_wrlock(lock) LOCKRET(pthread_mutex_lock(lock))
[all …]
H A Dlocks.c149 LOCKRET(thr_getspecific(key, &ret)); in ub_thread_key_get()
/netbsd-src/external/bsd/unbound/dist/testcode/
H A Dchecklocks.c151 LOCKRET(pthread_mutex_unlock(&lock->lock)); in lock_protect()
170 LOCKRET(pthread_mutex_unlock(&lock->lock)); in lock_unprotect()
176 LOCKRET(pthread_mutex_unlock(&lock->lock)); in lock_unprotect()
226 LOCKRET(pthread_mutex_unlock(&lock->lock)); in lock_get_mem()
301 LOCKRET(pthread_mutex_init(&e->lock, NULL)); in checklock_init()
304 LOCKRET(pthread_mutex_init(&e->u.mutex, NULL)); in checklock_init()
307 LOCKRET(pthread_spin_init(&e->u.spinlock, PTHREAD_PROCESS_PRIVATE)); in checklock_init()
310 LOCKRET(pthread_rwlock_init(&e->u.rwlock, NULL)); in checklock_init()
365 LOCKRET(pthread_mutex_unlock(&e->lock)); in checklock_destroy()
378 LOCKRET(pthread_mutex_destroy(&e->lock)); in checklock_destroy()
[all …]
H A Dchecklocks.h338 #define ub_thread_key_create(key, f) LOCKRET(pthread_key_create(key, f))
339 #define ub_thread_key_set(key, v) LOCKRET(pthread_setspecific(key, v))
/netbsd-src/external/bsd/unbound/dist/compat/
H A Darc4_lock.c35 #define LOCKRET(func) func macro