Searched refs:rwlock (Results 1 - 25 of 160) sorted by relevance

1234567

/freebsd-9.3-release/contrib/llvm/lib/Support/
H A DRWMutex.cpp50 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-9.3-release/sys/sys/
H A D_rwlock.h35 struct rwlock { struct
H A Drwlock.h123 void rw_init_flags(struct rwlock *rw, const char *name, int opts);
124 void rw_destroy(struct rwlock *rw);
127 int rw_wowned(struct rwlock *rw);
128 void _rw_wlock(struct rwlock *rw, const char *file, int line);
129 int _rw_try_wlock(struct rwlock *rw, const char *file, int line);
130 void _rw_wunlock(struct rwlock *rw, const char *file, int line);
131 void _rw_rlock(struct rwlock *rw, const char *file, int line);
132 int _rw_try_rlock(struct rwlock *rw, const char *file, int line);
133 void _rw_runlock(struct rwlock *rw, const char *file, int line);
134 void _rw_wlock_hard(struct rwlock *r
[all...]
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/
H A Dtst.rw.d41 @[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-9.3-release/lib/libkse/thread/
H A Dthr_rwlock.c53 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-9.3-release/lib/libthr/thread/
H A Dthr_rwlock.c49 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
192 _pthread_rwlock_rdlock(pthread_rwlock_t *rwlock) argument
198 _pthread_rwlock_timedrdlock(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument
205 _pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock) argument
239 _pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock) argument
254 rwlock_wrlock_common(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument
309 _pthread_rwlock_wrlock(pthread_rwlock_t *rwlock) argument
315 _pthread_rwlock_timedwrlock(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument
322 _pthread_rwlock_unlock(pthread_rwlock_t *rwlock) argument
[all...]
H A Dthr_umtx.h64 int __thr_rwlock_rdlock(struct urwlock *rwlock, int flags, struct timespec *tsp) __hidden;
65 int __thr_rwlock_wrlock(struct urwlock *rwlock, struct timespec *tsp) __hidden;
66 int __thr_rwlock_unlock(struct urwlock *rwlock) __hidden;
69 void _thr_rwl_rdlock(struct urwlock *rwlock) __hidden;
70 void _thr_rwl_wrlock(struct urwlock *rwlock) __hidden;
71 void _thr_rwl_unlock(struct urwlock *rwlock) __hidden;
129 _thr_rwlock_tryrdlock(struct urwlock *rwlock, int flags) argument
134 if (flags & URWLOCK_PREFER_READER || rwlock->rw_flags & URWLOCK_PREFER_READER)
138 state = rwlock->rw_state;
142 if (atomic_cmpset_acq_32(&rwlock
151 _thr_rwlock_trywrlock(struct urwlock *rwlock) argument
166 _thr_rwlock_rdlock(struct urwlock *rwlock, int flags, struct timespec *tsp) argument
174 _thr_rwlock_wrlock(struct urwlock *rwlock, struct timespec *tsp) argument
182 _thr_rwlock_unlock(struct urwlock *rwlock) argument
[all...]
H A Dthr_umtx.c285 __thr_rwlock_rdlock(struct urwlock *rwlock, int flags, struct timespec *tsp) argument
287 return _umtx_op_err(rwlock, UMTX_OP_RW_RDLOCK, flags, NULL, tsp);
291 __thr_rwlock_wrlock(struct urwlock *rwlock, struct timespec *tsp) argument
293 return _umtx_op_err(rwlock, UMTX_OP_RW_WRLOCK, 0, NULL, tsp);
297 __thr_rwlock_unlock(struct urwlock *rwlock) argument
299 return _umtx_op_err(rwlock, UMTX_OP_RW_UNLOCK, 0, NULL, NULL);
303 _thr_rwl_rdlock(struct urwlock *rwlock) argument
308 if (_thr_rwlock_tryrdlock(rwlock, URWLOCK_PREFER_READER) == 0)
310 ret = __thr_rwlock_rdlock(rwlock, URWLOCK_PREFER_READER, NULL);
319 _thr_rwl_wrlock(struct urwlock *rwlock) argument
335 _thr_rwl_unlock(struct urwlock *rwlock) argument
[all...]
/freebsd-9.3-release/sys/ofed/include/linux/
H A Drwlock.h32 #include <sys/rwlock.h>
35 struct rwlock rw;
H A Dspinlock.h39 #include <linux/rwlock.h>
/freebsd-9.3-release/contrib/bind9/lib/dns/
H A Dforward.c26 #include <isc/rwlock.h>
39 isc_rwlock_t rwlock; member in struct:dns_fwdtable
66 result = isc_rwlock_init(&fwdtable->rwlock, 0, 0);
116 RWLOCK(&fwdtable->rwlock, isc_rwlocktype_write);
118 RWUNLOCK(&fwdtable->rwlock, isc_rwlocktype_write);
141 RWLOCK(&fwdtable->rwlock, isc_rwlocktype_write);
143 RWUNLOCK(&fwdtable->rwlock, isc_rwlocktype_write);
166 RWLOCK(&fwdtable->rwlock, isc_rwlocktype_read);
173 RWUNLOCK(&fwdtable->rwlock, isc_rwlocktype_read);
188 isc_rwlock_destroy(&fwdtable->rwlock);
[all...]
H A Dkeytable.c25 #include <isc/rwlock.h>
66 result = isc_rwlock_init(&keytable->rwlock, 0, 0);
101 RWLOCK(&source->rwlock, isc_rwlocktype_write);
107 RWUNLOCK(&source->rwlock, isc_rwlocktype_write);
125 RWLOCK(&keytable->rwlock, isc_rwlocktype_write);
134 RWUNLOCK(&keytable->rwlock, isc_rwlocktype_write);
138 isc_rwlock_destroy(&keytable->rwlock);
165 RWLOCK(&keytable->rwlock, isc_rwlocktype_write);
205 RWUNLOCK(&keytable->rwlock, isc_rwlocktype_write);
234 RWLOCK(&keytable->rwlock, isc_rwlocktype_writ
[all...]
H A Dzt.c45 isc_rwlock_t rwlock; member in struct:dns_zt
93 result = isc_rwlock_init(&zt->rwlock, 0, 0);
129 RWLOCK(&zt->rwlock, isc_rwlocktype_write);
135 RWUNLOCK(&zt->rwlock, isc_rwlocktype_write);
149 RWLOCK(&zt->rwlock, isc_rwlocktype_write);
153 RWUNLOCK(&zt->rwlock, isc_rwlocktype_write);
171 RWLOCK(&zt->rwlock, isc_rwlocktype_read);
178 RWUNLOCK(&zt->rwlock, isc_rwlocktype_read);
189 RWLOCK(&zt->rwlock, isc_rwlocktype_write);
195 RWUNLOCK(&zt->rwlock, isc_rwlocktype_writ
[all...]
/freebsd-9.3-release/sys/dev/cxgb/ulp/tom/
H A Dcxgb_l2t.h35 #include <sys/rwlock.h>
77 struct rwlock lock;
/freebsd-9.3-release/sys/dev/mem/
H A Dmemutil.c35 #include <sys/rwlock.h>
38 static struct rwlock mr_lock;
/freebsd-9.3-release/sys/netatalk/
H A Dat_var.h66 extern struct rwlock at_ifaddr_rw;
/freebsd-9.3-release/sys/netipx/
H A Dipx_if.h114 extern struct rwlock ipx_ifaddr_rw;
/freebsd-9.3-release/sys/kern/
H A Dkern_rwlock.c46 #include <sys/rwlock.h>
127 rw_assert((struct rwlock *)lock, what);
133 struct rwlock *rw;
135 rw = (struct rwlock *)lock;
145 struct rwlock *rw;
147 rw = (struct rwlock *)lock;
162 struct rwlock *rw = (struct rwlock *)lock;
172 rw_init_flags(struct rwlock *rw, const char *name, int opts)
200 rw_destroy(struct rwlock *r
[all...]
/freebsd-9.3-release/contrib/bind9/lib/dns/include/dns/
H A Dkeytable.h47 #include <isc/rwlock.h>
61 isc_rwlock_t rwlock; member in struct:dns_keytable
64 /* Locked by rwlock. */
/freebsd-9.3-release/sys/sparc64/include/
H A Dpmap.h72 struct rwlock lock;
73 char padding[CACHE_LINE_SIZE - sizeof(struct rwlock)];
/freebsd-9.3-release/sys/dev/cxgbe/
H A Dt4_l2t.h79 struct rwlock lock;
/freebsd-9.3-release/usr.sbin/nscd/
H A Dconfig.h103 pthread_rwlock_t rwlock; member in struct:configuration
/freebsd-9.3-release/sys/net/
H A Dif_llatbl.h46 extern struct rwlock lltable_rwlock;
59 struct rwlock lle_lock;
/freebsd-9.3-release/sys/netinet/libalias/
H A Dalias_mod.c34 #include <sys/rwlock.h>
57 struct rwlock handler_rw;
/freebsd-9.3-release/sys/netinet/
H A Dcc.h158 extern struct rwlock cc_list_lock;

Completed in 284 milliseconds

1234567