Searched defs:lock (Results 1 - 25 of 64) sorted by relevance

123

/bind-9.11.3/lib/isc/include/isc/
H A Dquota.h43 isc_mutex_t lock; /*%< Locked by lock. */ member in struct:isc_quota
H A Drwlock.h45 isc_mutex_t lock; member in struct:isc_rwlock
53 * appear, massively reducing the lock overhead in the typical case.
56 * writer-preference lock" shown in the following URL:
58 * but our implementation does not rely on the spin lock unlike the
73 /* Locked by lock. */
86 /*%< Locked by lock. */
91 /*% The number of threads that have the lock. */
95 * The number of lock grants made since the lock was last switched
/bind-9.11.3/bin/named/include/named/
H A Dlwsearch.h36 isc_mutex_t lock; member in struct:ns_lwsearchlist
H A Dlwresd.h26 isc_mutex_t lock; member in struct:ns_lwresd
40 isc_mutex_t lock; member in struct:ns_lwreslistener
H A Dinterfacemgr.h65 isc_mutex_t lock; member in struct:ns_interface
/bind-9.11.3/bin/tests/
H A Dmempool_test.c25 isc_mutex_t lock; local
32 RUNTIME_CHECK(isc_mutex_init(&lock) == ISC_R_SUCCESS);
43 isc_mempool_associatelock(mp1, &lock);
44 isc_mempool_associatelock(mp2, &lock);
116 DESTROYLOCK(&lock);
H A Drwlock_test.c29 isc_rwlock_t lock; variable
38 RUNTIME_CHECK(isc_rwlock_lock(&lock, isc_rwlocktype_read) ==
40 printf("%s got READ lock\n", message);
42 printf("%s giving up READ lock\n", message);
43 RUNTIME_CHECK(isc_rwlock_unlock(&lock, isc_rwlocktype_read) ==
45 RUNTIME_CHECK(isc_rwlock_lock(&lock, isc_rwlocktype_read) ==
47 printf("%s got READ lock\n", message);
49 printf("%s giving up READ lock\n", message);
50 RUNTIME_CHECK(isc_rwlock_unlock(&lock, isc_rwlocktype_read) ==
52 RUNTIME_CHECK(isc_rwlock_lock(&lock, isc_rwlocktype_writ
[all...]
/bind-9.11.3/lib/isc/
H A Dcounter.c26 isc_mutex_t lock; member in struct:isc_counter
43 result = isc_mutex_init(&counter->lock);
65 LOCK(&counter->lock);
69 UNLOCK(&counter->lock);
85 LOCK(&counter->lock);
87 UNLOCK(&counter->lock);
95 LOCK(&source->lock);
98 UNLOCK(&source->lock);
106 isc_mutex_destroy(&counter->lock);
121 LOCK(&counter->lock);
[all...]
H A Dresult.c52 "lock busy", /*%< 17 */
174 static isc_mutex_t lock; variable
201 LOCK(&lock);
205 UNLOCK(&lock);
214 RUNTIME_CHECK(isc_mutex_init(&lock) == ISC_R_SUCCESS);
253 LOCK(&lock);
276 UNLOCK(&lock);
H A Dhash.c82 isc_mutex_t lock; member in struct:isc_hash
166 * We need a lock.
168 result = isc_mutex_init(&hctx->lock);
194 DESTROYLOCK(&hctx->lock);
230 LOCK(&hctx->lock);
265 UNLOCK(&hctx->lock);
293 LOCK(&hctx->lock);
303 UNLOCK(&hctx->lock);
305 DESTROYLOCK(&hctx->lock);
H A Drandom.c74 isc_mutex_t lock; member in struct:isc_rng
208 /* Create lock */
209 result = isc_mutex_init(&rng->lock);
236 LOCK(&source->lock);
238 UNLOCK(&source->lock);
249 isc_mutex_destroy(&rng->lock);
263 LOCK(&rng->lock);
269 UNLOCK(&rng->lock);
367 LOCK(&rng->lock);
374 UNLOCK(&rng->lock);
[all...]
H A Dratelimiter.c29 isc_mutex_t lock; member in struct:isc_ratelimiter
70 result = isc_mutex_init(&rl->lock);
95 DESTROYLOCK(&rl->lock);
108 LOCK(&rl->lock);
117 UNLOCK(&rl->lock);
152 LOCK(&rl->lock);
172 UNLOCK(&rl->lock);
185 LOCK(&rl->lock);
191 UNLOCK(&rl->lock);
209 LOCK(&rl->lock);
[all...]
H A Dstats.c50 * Only lock the counters if 64-bit atomic operations are
51 * not available but cheap atomic lock operations are.
105 isc_mutex_t lock; member in struct:isc_stats
106 unsigned int references; /* locked by lock */
118 * We don't want to lock the counters while we are dumping, so we first
142 result = isc_mutex_init(&stats->lock);
185 DESTROYLOCK(&stats->lock);
198 LOCK(&stats->lock);
200 UNLOCK(&stats->lock);
214 LOCK(&stats->lock);
[all...]
/bind-9.11.3/contrib/dlz/modules/include/
H A Ddlz_dbi.h87 dlz_mutex_t lock; member in struct:dbinstance
/bind-9.11.3/lib/dns/include/dns/
H A Ddispatch.h90 isc_mutex_t lock; member in struct:dns_dispatchset
H A Dtsig.h59 isc_rwlock_t lock; member in struct:dns_tsig_keyring
H A Dvalidator.h119 isc_mutex_t lock; member in struct:dns_validator
121 /* Locked by lock. */
/bind-9.11.3/lib/dns/
H A Dportlist.c42 isc_mutex_t lock; member in struct:dns_portlist
74 result = isc_mutex_init(&portlist->lock);
81 DESTROYLOCK(&portlist->lock);
136 LOCK(&portlist->lock);
175 UNLOCK(&portlist->lock);
186 LOCK(&portlist->lock);
202 UNLOCK(&portlist->lock);
212 LOCK(&portlist->lock);
222 UNLOCK(&portlist->lock);
253 DESTROYLOCK(&portlist->lock);
[all...]
H A Ddbtable.c34 isc_mutex_t lock; member in struct:dns_dbtable
36 /* Locked by lock. */
74 result = isc_mutex_init(&dbtable->lock);
94 DESTROYLOCK(&dbtable->lock);
132 LOCK(&source->lock);
138 UNLOCK(&source->lock);
152 LOCK(&dbtable->lock);
159 UNLOCK(&dbtable->lock);
H A Dlookup.c35 isc_mutex_t lock; member in struct:dns_lookup
38 /* Locked by lock. */
77 * The caller must be holding the lookup's lock.
187 LOCK(&lookup->lock);
343 UNLOCK(&lookup->lock);
410 result = isc_mutex_init(&lookup->lock);
437 DESTROYLOCK(&lookup->lock);
456 LOCK(&lookup->lock);
466 UNLOCK(&lookup->lock);
484 DESTROYLOCK(&lookup->lock);
[all...]
H A Dssu.c54 isc_mutex_t lock; member in struct:dns_ssutable
70 result = isc_mutex_init(&table->lock);
108 DESTROYLOCK(&table->lock);
118 LOCK(&source->lock);
124 UNLOCK(&source->lock);
138 LOCK(&table->lock);
143 UNLOCK(&table->lock);
H A Dbadcache.c33 isc_mutex_t lock; member in struct:dns_badcache
72 result = isc_mutex_init(&bc->lock);
93 DESTROYLOCK(&bc->lock);
109 DESTROYLOCK(&bc->lock);
166 LOCK(&bc->lock);
219 UNLOCK(&bc->lock);
235 LOCK(&bc->lock);
291 UNLOCK(&bc->lock);
323 LOCK(&bc->lock);
347 UNLOCK(&bc->lock);
[all...]
H A Dbyaddr.c111 isc_mutex_t lock; member in struct:dns_byaddr
113 /* Locked by lock. */
133 * The caller must be holding the byaddr's lock.
239 result = isc_mutex_init(&byaddr->lock);
265 DESTROYLOCK(&byaddr->lock);
284 LOCK(&byaddr->lock);
292 UNLOCK(&byaddr->lock);
306 DESTROYLOCK(&byaddr->lock);
/bind-9.11.3/contrib/dnsperf-2.1.0.0-1/
H A Ddatafile.c38 pthread_mutex_t lock; member in struct:perf_datafile
71 MUTEX_INIT(&dfile->lock);
108 MUTEX_DESTROY(&dfile->lock);
227 LOCK(&dfile->lock);
267 UNLOCK(&dfile->lock);
/bind-9.11.3/lib/dns/tests/
H A Ddispatch_test.c197 static isc_mutex_t lock; variable
209 LOCK(&lock);
213 UNLOCK(&lock);
253 result = isc_mutex_init(&lock);

Completed in 26 milliseconds

123