/freebsd-10-stable/contrib/llvm/lib/Support/ |
H A D | RWMutex.cpp | 50 pthread_rwlock_t* rwlock = 55 bzero(rwlock, sizeof(pthread_rwlock_t)); 58 // Initialize the rwlock 59 int errorcode = pthread_rwlock_init(rwlock, NULL); 64 data_ = rwlock; 70 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); 71 assert(rwlock != 0); 72 pthread_rwlock_destroy(rwlock); 73 free(rwlock); 79 pthread_rwlock_t* rwlock [all...] |
/freebsd-10-stable/contrib/apr/locks/unix/ |
H A D | thread_rwlock.c | 24 /* The rwlock must be initialized but not locked by any thread when 28 apr_thread_rwlock_t *rwlock = (apr_thread_rwlock_t *)data; local 31 stat = pthread_rwlock_destroy(&rwlock->rwlock); 40 APR_DECLARE(apr_status_t) apr_thread_rwlock_create(apr_thread_rwlock_t **rwlock, 49 if ((stat = pthread_rwlock_init(&new_rwlock->rwlock, NULL))) { 60 *rwlock = new_rwlock; 64 APR_DECLARE(apr_status_t) apr_thread_rwlock_rdlock(apr_thread_rwlock_t *rwlock) 68 stat = pthread_rwlock_rdlock(&rwlock->rwlock); [all...] |
/freebsd-10-stable/sys/cddl/compat/opensolaris/sys/ |
H A D | freebsd_rwlock.h | 32 #include_next <sys/rwlock.h>
|
/freebsd-10-stable/contrib/apr/include/ |
H A D | apr_thread_rwlock.h | 56 * @param rwlock the memory address where the newly created readwrite lock 60 APR_DECLARE(apr_status_t) apr_thread_rwlock_create(apr_thread_rwlock_t **rwlock, 66 * @param rwlock the read-write lock on which to acquire the shared read. 68 APR_DECLARE(apr_status_t) apr_thread_rwlock_rdlock(apr_thread_rwlock_t *rwlock); variable 78 * @param rwlock the rwlock on which to attempt the shared read. 80 APR_DECLARE(apr_status_t) apr_thread_rwlock_tryrdlock(apr_thread_rwlock_t *rwlock); variable 87 * @param rwlock the read-write lock on which to acquire the exclusive write. 89 APR_DECLARE(apr_status_t) apr_thread_rwlock_wrlock(apr_thread_rwlock_t *rwlock); variable 98 * @param rwlock th 100 APR_DECLARE(apr_status_t) apr_thread_rwlock_trywrlock(apr_thread_rwlock_t *rwlock); variable 107 APR_DECLARE(apr_status_t) apr_thread_rwlock_unlock(apr_thread_rwlock_t *rwlock); variable 113 APR_DECLARE(apr_status_t) apr_thread_rwlock_destroy(apr_thread_rwlock_t *rwlock); variable [all...] |
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/ |
H A D | tst.rw.d | 41 @[rw_read_held((struct rwlock *)&`unp_global_rwlock)] = count(); 42 @[rw_read_held((struct rwlock *)rand())] = count(); 48 @[rw_write_held((struct rwlock *)&`unp_global_rwlock)] = count(); 49 @[rw_write_held((struct rwlock *)rand())] = count(); 55 @[rw_iswriter((struct rwlock *)&`unp_global_rwlock)] = count(); 56 @[rw_iswriter((struct rwlock *)rand())] = count();
|
/freebsd-10-stable/lib/libkse/thread/ |
H A D | thr_rwlock.c | 53 static int init_static(pthread_rwlock_t *rwlock); 57 init_static(pthread_rwlock_t *rwlock) argument 64 if (*rwlock == NULL) 65 ret = _pthread_rwlock_init(rwlock, NULL); 74 _pthread_rwlock_destroy (pthread_rwlock_t *rwlock) argument 78 if (rwlock == NULL) 83 prwlock = *rwlock; 90 *rwlock = NULL; 98 _pthread_rwlock_init (pthread_rwlock_t *rwlock, argument 104 /* allocate rwlock objec 142 rwlock_rdlock_common(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument 219 _pthread_rwlock_rdlock(pthread_rwlock_t *rwlock) argument 227 _pthread_rwlock_timedrdlock(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument 234 _pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock) argument 280 _pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock) argument 315 _pthread_rwlock_unlock(pthread_rwlock_t *rwlock) argument 358 rwlock_wrlock_common(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument 408 _pthread_rwlock_wrlock(pthread_rwlock_t *rwlock) argument 415 _pthread_rwlock_timedwrlock(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument [all...] |
/freebsd-10-stable/lib/libthr/thread/ |
H A D | thr_rwlock.c | 49 if (__predict_false((prwlock = (*rwlock)) <= THR_RWLOCK_DESTROYED)) { \ 52 ret = init_static(_get_curthread(), rwlock); \ 58 prwlock = *rwlock; \ 66 rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr __unused) argument 73 *rwlock = prwlock; 78 _pthread_rwlock_destroy (pthread_rwlock_t *rwlock) argument 83 prwlock = *rwlock; 89 *rwlock = THR_RWLOCK_DESTROYED; 98 init_static(struct pthread *thread, pthread_rwlock_t *rwlock) argument 104 if (*rwlock 115 _pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr) argument 122 rwlock_rdlock_common(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument 181 _pthread_rwlock_rdlock(pthread_rwlock_t *rwlock) argument 187 _pthread_rwlock_timedrdlock(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument 194 _pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock) argument 228 _pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock) argument 243 rwlock_wrlock_common(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument 287 _pthread_rwlock_wrlock(pthread_rwlock_t *rwlock) argument 293 _pthread_rwlock_timedwrlock(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument 300 _pthread_rwlock_unlock(pthread_rwlock_t *rwlock) argument [all...] |
H A D | thr_umtx.h | 64 int __thr_rwlock_rdlock(struct urwlock *rwlock, int flags, 66 int __thr_rwlock_wrlock(struct urwlock *rwlock, 68 int __thr_rwlock_unlock(struct urwlock *rwlock) __hidden; 71 void _thr_rwl_rdlock(struct urwlock *rwlock) __hidden; 72 void _thr_rwl_wrlock(struct urwlock *rwlock) __hidden; 73 void _thr_rwl_unlock(struct urwlock *rwlock) __hidden; 155 _thr_rwlock_tryrdlock(struct urwlock *rwlock, int flags) argument 160 if (flags & URWLOCK_PREFER_READER || rwlock->rw_flags & URWLOCK_PREFER_READER) 164 state = rwlock->rw_state; 168 if (atomic_cmpset_acq_32(&rwlock 177 _thr_rwlock_trywrlock(struct urwlock *rwlock) argument 192 _thr_rwlock_rdlock(struct urwlock *rwlock, int flags, struct timespec *tsp) argument 200 _thr_rwlock_wrlock(struct urwlock *rwlock, struct timespec *tsp) argument 208 _thr_rwlock_unlock(struct urwlock *rwlock) argument [all...] |
H A D | thr_umtx.c | 262 __thr_rwlock_rdlock(struct urwlock *rwlock, int flags, argument 278 return _umtx_op_err(rwlock, UMTX_OP_RW_RDLOCK, flags, (void *)tm_size, tm_p); 282 __thr_rwlock_wrlock(struct urwlock *rwlock, const struct timespec *tsp) argument 297 return _umtx_op_err(rwlock, UMTX_OP_RW_WRLOCK, 0, (void *)tm_size, tm_p); 301 __thr_rwlock_unlock(struct urwlock *rwlock) argument 303 return _umtx_op_err(rwlock, UMTX_OP_RW_UNLOCK, 0, NULL, NULL); 307 _thr_rwl_rdlock(struct urwlock *rwlock) argument 312 if (_thr_rwlock_tryrdlock(rwlock, URWLOCK_PREFER_READER) == 0) 314 ret = __thr_rwlock_rdlock(rwlock, URWLOCK_PREFER_READER, NULL); 323 _thr_rwl_wrlock(struct urwlock *rwlock) argument 339 _thr_rwl_unlock(struct urwlock *rwlock) argument [all...] |
/freebsd-10-stable/contrib/apr/include/arch/unix/ |
H A D | apr_arch_thread_rwlock.h | 36 pthread_rwlock_t rwlock; member in struct:apr_thread_rwlock_t
|
/freebsd-10-stable/sys/sys/ |
H A D | _rwlock.h | 43 struct rwlock { struct 49 * Members of struct rwlock_padalign must mirror members of struct rwlock. 50 * rwlock_padalign rwlocks can use the rwlock(9) API transparently without 55 * the rwlock.
|
/freebsd-10-stable/sys/ofed/include/linux/ |
H A D | rwlock.h | 33 #include <sys/rwlock.h> 36 struct rwlock rw;
|
H A D | spinlock.h | 39 #include <linux/rwlock.h>
|
/freebsd-10-stable/sys/dev/cxgb/ulp/tom/ |
H A D | cxgb_l2t.h | 35 #include <sys/rwlock.h> 77 struct rwlock lock;
|
/freebsd-10-stable/sys/dev/mem/ |
H A D | memutil.c | 35 #include <sys/rwlock.h> 38 static struct rwlock mr_lock;
|
/freebsd-10-stable/sys/kern/ |
H A D | kern_rwlock.c | 46 #include <sys/rwlock.h> 65 * Return the rwlock address when the lock cookie address is provided. 66 * This functionality assumes that struct rwlock* have a member named rw_lock. 68 #define rwlock2rw(c) (__containerof(c, struct rwlock, rw_lock)) 99 static SYSCTL_NODE(_debug, OID_AUTO, rwlock, CTLFLAG_RD, NULL, 100 "rwlock debugging"); 166 rw_assert((const struct rwlock *)lock, what); 172 struct rwlock *rw; 174 rw = (struct rwlock *)lock; 184 struct rwlock *r [all...] |
/freebsd-10-stable/sys/netatalk/ |
H A D | at_var.h | 66 extern struct rwlock at_ifaddr_rw;
|
/freebsd-10-stable/sys/netipx/ |
H A D | ipx_if.h | 114 extern struct rwlock ipx_ifaddr_rw;
|
/freebsd-10-stable/contrib/netbsd-tests/rump/kernspace/ |
H A D | lockme.c | 38 #include <sys/rwlock.h>
|
/freebsd-10-stable/usr.sbin/nscd/ |
H A D | config.h | 105 pthread_rwlock_t rwlock; member in struct:configuration
|
/freebsd-10-stable/sys/dev/cxgbe/ |
H A D | t4_l2t.h | 81 struct rwlock lock;
|
/freebsd-10-stable/sys/ofed/drivers/infiniband/core/ |
H A D | local_sa.c | 79 static rwlock_t rwlock; variable 195 write_lock_irq(&rwlock); 201 write_unlock_irq(&rwlock); 209 write_lock_irq(&rwlock); 216 write_unlock_irq(&rwlock); 269 write_lock_irq(&rwlock); 272 write_unlock_irq(&rwlock); 282 write_lock_irq(&rwlock); 285 write_unlock_irq(&rwlock); 297 write_unlock_irq(&rwlock); [all...] |
/freebsd-10-stable/sys/net/ |
H A D | if_llatbl.h | 44 extern struct rwlock lltable_rwlock; 57 struct rwlock lle_lock;
|
/freebsd-10-stable/sys/netinet/libalias/ |
H A D | alias_mod.c | 34 #include <sys/rwlock.h> 57 struct rwlock handler_rw;
|
/freebsd-10-stable/sys/netinet/ |
H A D | cc.h | 158 extern struct rwlock cc_list_lock;
|