Searched refs:LOCKRET (Results 1 – 6 of 6) sorted by relevance
| /openbsd/src/usr.sbin/unbound/util/ |
| D | locks.h | 60 #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 …]
|
| D | locks.c | 149 LOCKRET(thr_getspecific(key, &ret)); in ub_thread_key_get()
|
| /openbsd/src/sbin/unwind/libunbound/util/ |
| D | locks.h | 60 #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 …]
|
| D | locks.c | 149 LOCKRET(thr_getspecific(key, &ret)); in ub_thread_key_get()
|
| /openbsd/src/usr.sbin/unbound/testcode/ |
| D | checklocks.c | 162 LOCKRET(pthread_mutex_unlock(&lock->lock)); in lock_protect() 181 LOCKRET(pthread_mutex_unlock(&lock->lock)); in lock_unprotect() 187 LOCKRET(pthread_mutex_unlock(&lock->lock)); in lock_unprotect() 237 LOCKRET(pthread_mutex_unlock(&lock->lock)); in lock_get_mem() 312 LOCKRET(pthread_mutex_init(&e->lock, NULL)); in checklock_init() 315 LOCKRET(pthread_mutex_init(&e->u.mutex, NULL)); in checklock_init() 318 LOCKRET(pthread_spin_init(&e->u.spinlock, PTHREAD_PROCESS_PRIVATE)); in checklock_init() 321 LOCKRET(pthread_rwlock_init(&e->u.rwlock, NULL)); in checklock_init() 376 LOCKRET(pthread_mutex_unlock(&e->lock)); in checklock_destroy() 389 LOCKRET(pthread_mutex_destroy(&e->lock)); in checklock_destroy() [all …]
|
| D | checklocks.h | 338 #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))
|