Lines Matching defs:lock
50 * Only lock the counters if 64-bit atomic operations are
51 * not available but cheap atomic lock operations are.
105 isc_mutex_t lock;
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);
222 UNLOCK(&stats->lock);
223 DESTROYLOCK(&stats->lock);
231 UNLOCK(&stats->lock);
247 * We use a "read" lock to prevent other threads from reading the
267 * by the write (exclusive) lock.
343 * We use a "write" lock before "reading" the statistics counters as
344 * an exclusive lock.
424 * We use a "write" lock before "reading" the statistics counters as
425 * an exclusive lock.