lock 38 maint/gnulib/lib/asyncsafe-spin.c asyncsafe_spin_init (asyncsafe_spinlock_t *lock) lock 40 maint/gnulib/lib/asyncsafe-spin.c glwthread_spin_init (lock); lock 44 maint/gnulib/lib/asyncsafe-spin.c do_lock (asyncsafe_spinlock_t *lock) lock 46 maint/gnulib/lib/asyncsafe-spin.c glwthread_spin_lock (lock); lock 50 maint/gnulib/lib/asyncsafe-spin.c do_unlock (asyncsafe_spinlock_t *lock) lock 52 maint/gnulib/lib/asyncsafe-spin.c if (glwthread_spin_unlock (lock)) lock 57 maint/gnulib/lib/asyncsafe-spin.c asyncsafe_spin_destroy (asyncsafe_spinlock_t *lock) lock 59 maint/gnulib/lib/asyncsafe-spin.c glwthread_spin_destroy (lock); lock 87 maint/gnulib/lib/asyncsafe-spin.c asyncsafe_spin_init (asyncsafe_spinlock_t *lock) lock 89 maint/gnulib/lib/asyncsafe-spin.c __atomic_store_n (lock, 0, __ATOMIC_SEQ_CST); lock 93 maint/gnulib/lib/asyncsafe-spin.c do_lock (asyncsafe_spinlock_t *lock) lock 98 maint/gnulib/lib/asyncsafe-spin.c __atomic_compare_exchange_n (lock, &zero, 1, false, lock 104 maint/gnulib/lib/asyncsafe-spin.c do_unlock (asyncsafe_spinlock_t *lock) lock 108 maint/gnulib/lib/asyncsafe-spin.c if (!__atomic_compare_exchange_n (lock, &one, 0, false, lock 118 maint/gnulib/lib/asyncsafe-spin.c asyncsafe_spin_init (asyncsafe_spinlock_t *lock) lock 120 maint/gnulib/lib/asyncsafe-spin.c __atomic_clear (lock, __ATOMIC_SEQ_CST); lock 124 maint/gnulib/lib/asyncsafe-spin.c do_lock (asyncsafe_spinlock_t *lock) lock 126 maint/gnulib/lib/asyncsafe-spin.c while (__atomic_test_and_set (lock, __ATOMIC_SEQ_CST)) lock 131 maint/gnulib/lib/asyncsafe-spin.c do_unlock (asyncsafe_spinlock_t *lock) lock 133 maint/gnulib/lib/asyncsafe-spin.c __atomic_clear (lock, __ATOMIC_SEQ_CST); lock 148 maint/gnulib/lib/asyncsafe-spin.c asyncsafe_spin_init (asyncsafe_spinlock_t *lock) lock 150 maint/gnulib/lib/asyncsafe-spin.c volatile unsigned int *vp = lock; lock 156 maint/gnulib/lib/asyncsafe-spin.c do_lock (asyncsafe_spinlock_t *lock) lock 159 maint/gnulib/lib/asyncsafe-spin.c while (__sync_val_compare_and_swap (lock, 0, 1) != 0) lock 164 maint/gnulib/lib/asyncsafe-spin.c do_unlock (asyncsafe_spinlock_t *lock) lock 167 maint/gnulib/lib/asyncsafe-spin.c if (__sync_val_compare_and_swap (lock, 1, 0) != 1) lock 175 maint/gnulib/lib/asyncsafe-spin.c asyncsafe_spin_init (asyncsafe_spinlock_t *lock) lock 177 maint/gnulib/lib/asyncsafe-spin.c atomic_p vp = (int *) lock; lock 182 maint/gnulib/lib/asyncsafe-spin.c do_lock (asyncsafe_spinlock_t *lock) lock 184 maint/gnulib/lib/asyncsafe-spin.c atomic_p vp = (int *) lock; lock 190 maint/gnulib/lib/asyncsafe-spin.c do_unlock (asyncsafe_spinlock_t *lock) lock 192 maint/gnulib/lib/asyncsafe-spin.c atomic_p vp = (int *) lock; lock 265 maint/gnulib/lib/asyncsafe-spin.c asyncsafe_spin_init (asyncsafe_spinlock_t *lock) lock 267 maint/gnulib/lib/asyncsafe-spin.c volatile unsigned int *vp = lock; lock 273 maint/gnulib/lib/asyncsafe-spin.c do_lock (asyncsafe_spinlock_t *lock) lock 275 maint/gnulib/lib/asyncsafe-spin.c volatile unsigned int *vp = lock; lock 281 maint/gnulib/lib/asyncsafe-spin.c do_unlock (asyncsafe_spinlock_t *lock) lock 283 maint/gnulib/lib/asyncsafe-spin.c volatile unsigned int *vp = lock; lock 292 maint/gnulib/lib/asyncsafe-spin.c asyncsafe_spin_init (asyncsafe_spinlock_t *lock) lock 294 maint/gnulib/lib/asyncsafe-spin.c volatile unsigned int *vp = lock; lock 299 maint/gnulib/lib/asyncsafe-spin.c do_lock (asyncsafe_spinlock_t *lock) lock 301 maint/gnulib/lib/asyncsafe-spin.c volatile unsigned int *vp = lock; lock 308 maint/gnulib/lib/asyncsafe-spin.c do_unlock (asyncsafe_spinlock_t *lock) lock 310 maint/gnulib/lib/asyncsafe-spin.c volatile unsigned int *vp = lock; lock 320 maint/gnulib/lib/asyncsafe-spin.c asyncsafe_spin_init (asyncsafe_spinlock_t *lock) lock 325 maint/gnulib/lib/asyncsafe-spin.c do_lock (asyncsafe_spinlock_t *lock) lock 330 maint/gnulib/lib/asyncsafe-spin.c do_unlock (asyncsafe_spinlock_t *lock) lock 337 maint/gnulib/lib/asyncsafe-spin.c asyncsafe_spin_destroy (asyncsafe_spinlock_t *lock) lock 344 maint/gnulib/lib/asyncsafe-spin.c asyncsafe_spin_lock (asyncsafe_spinlock_t *lock, lock 348 maint/gnulib/lib/asyncsafe-spin.c do_lock (lock); lock 352 maint/gnulib/lib/asyncsafe-spin.c asyncsafe_spin_unlock (asyncsafe_spinlock_t *lock, const sigset_t *saved_mask) lock 354 maint/gnulib/lib/asyncsafe-spin.c do_unlock (lock); lock 58 maint/gnulib/lib/asyncsafe-spin.h extern void asyncsafe_spin_init (asyncsafe_spinlock_t *lock); lock 59 maint/gnulib/lib/asyncsafe-spin.h extern void asyncsafe_spin_lock (asyncsafe_spinlock_t *lock, lock 61 maint/gnulib/lib/asyncsafe-spin.h extern void asyncsafe_spin_unlock (asyncsafe_spinlock_t *lock, lock 63 maint/gnulib/lib/asyncsafe-spin.h extern void asyncsafe_spin_destroy (asyncsafe_spinlock_t *lock); lock 65 maint/gnulib/lib/clean-temp-private.h asyncsafe_spinlock_t lock; lock 160 maint/gnulib/lib/clean-temp-simple.c asyncsafe_spin_lock (&element->lock, fatal_signal_set, &saved_mask); lock 172 maint/gnulib/lib/clean-temp-simple.c asyncsafe_spin_unlock (&element->lock, &saved_mask); lock 112 maint/gnulib/lib/clean-temp.c asyncsafe_spin_lock (&element->lock, get_fatal_signal_set (), &saved_mask); lock 124 maint/gnulib/lib/clean-temp.c asyncsafe_spin_unlock (&element->lock, &saved_mask); lock 542 maint/gnulib/lib/clean-temp.c asyncsafe_spin_init (&element->lock); lock 39 maint/gnulib/lib/glthread/cond.c glthread_cond_wait (gl_cond_t *condition, gl_lock_t *lock) lock 43 maint/gnulib/lib/glthread/cond.c if (lock->init_needed) lock 44 maint/gnulib/lib/glthread/cond.c call_once (&lock->init_once, lock->init_func); lock 45 maint/gnulib/lib/glthread/cond.c if (cnd_wait (&condition->condition, &lock->mutex) != thrd_success) lock 51 maint/gnulib/lib/glthread/cond.c glthread_cond_timedwait (gl_cond_t *condition, gl_lock_t *lock, lock 56 maint/gnulib/lib/glthread/cond.c if (lock->init_needed) lock 57 maint/gnulib/lib/glthread/cond.c call_once (&lock->init_once, lock->init_func); lock 58 maint/gnulib/lib/glthread/cond.c switch (cnd_timedwait (&condition->condition, &lock->mutex, abstime)) lock 113 maint/gnulib/lib/glthread/cond.h extern int glthread_cond_wait (gl_cond_t *condition, gl_lock_t *lock); lock 114 maint/gnulib/lib/glthread/cond.h extern int glthread_cond_timedwait (gl_cond_t *condition, gl_lock_t *lock, lock 307 maint/gnulib/lib/glthread/cond.h gl_cond_timedwait_func (gl_cond_t *cond, gl_lock_t *lock, struct timespec *abstime) lock 309 maint/gnulib/lib/glthread/cond.h int err = glthread_cond_timedwait (cond, lock, abstime); lock 31 maint/gnulib/lib/glthread/lock.c glthread_lock_init (gl_lock_t *lock) lock 33 maint/gnulib/lib/glthread/lock.c if (mtx_init (&lock->mutex, mtx_plain) != thrd_success) lock 35 maint/gnulib/lib/glthread/lock.c lock->init_needed = 0; lock 40 maint/gnulib/lib/glthread/lock.c glthread_lock_lock (gl_lock_t *lock) lock 42 maint/gnulib/lib/glthread/lock.c if (lock->init_needed) lock 43 maint/gnulib/lib/glthread/lock.c call_once (&lock->init_once, lock->init_func); lock 44 maint/gnulib/lib/glthread/lock.c if (mtx_lock (&lock->mutex) != thrd_success) lock 50 maint/gnulib/lib/glthread/lock.c glthread_lock_unlock (gl_lock_t *lock) lock 52 maint/gnulib/lib/glthread/lock.c if (lock->init_needed) lock 53 maint/gnulib/lib/glthread/lock.c call_once (&lock->init_once, lock->init_func); lock 54 maint/gnulib/lib/glthread/lock.c if (mtx_unlock (&lock->mutex) != thrd_success) lock 60 maint/gnulib/lib/glthread/lock.c glthread_lock_destroy (gl_lock_t *lock) lock 62 maint/gnulib/lib/glthread/lock.c if (lock->init_needed) lock 63 maint/gnulib/lib/glthread/lock.c call_once (&lock->init_once, lock->init_func); lock 64 maint/gnulib/lib/glthread/lock.c mtx_destroy (&lock->mutex); lock 71 maint/gnulib/lib/glthread/lock.c glthread_rwlock_init (gl_rwlock_t *lock) lock 73 maint/gnulib/lib/glthread/lock.c if (mtx_init (&lock->lock, mtx_plain) != thrd_success lock 74 maint/gnulib/lib/glthread/lock.c || cnd_init (&lock->waiting_readers) != thrd_success lock 75 maint/gnulib/lib/glthread/lock.c || cnd_init (&lock->waiting_writers) != thrd_success) lock 77 maint/gnulib/lib/glthread/lock.c lock->waiting_writers_count = 0; lock 78 maint/gnulib/lib/glthread/lock.c lock->runcount = 0; lock 79 maint/gnulib/lib/glthread/lock.c lock->init_needed = 0; lock 84 maint/gnulib/lib/glthread/lock.c glthread_rwlock_rdlock (gl_rwlock_t *lock) lock 86 maint/gnulib/lib/glthread/lock.c if (lock->init_needed) lock 87 maint/gnulib/lib/glthread/lock.c call_once (&lock->init_once, lock->init_func); lock 88 maint/gnulib/lib/glthread/lock.c if (mtx_lock (&lock->lock) != thrd_success) lock 94 maint/gnulib/lib/glthread/lock.c while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) lock 98 maint/gnulib/lib/glthread/lock.c if (cnd_wait (&lock->waiting_readers, &lock->lock) != thrd_success) lock 100 maint/gnulib/lib/glthread/lock.c mtx_unlock (&lock->lock); lock 104 maint/gnulib/lib/glthread/lock.c lock->runcount++; lock 105 maint/gnulib/lib/glthread/lock.c if (mtx_unlock (&lock->lock) != thrd_success) lock 111 maint/gnulib/lib/glthread/lock.c glthread_rwlock_wrlock (gl_rwlock_t *lock) lock 113 maint/gnulib/lib/glthread/lock.c if (lock->init_needed) lock 114 maint/gnulib/lib/glthread/lock.c call_once (&lock->init_once, lock->init_func); lock 115 maint/gnulib/lib/glthread/lock.c if (mtx_lock (&lock->lock) != thrd_success) lock 118 maint/gnulib/lib/glthread/lock.c while (!(lock->runcount == 0)) lock 122 maint/gnulib/lib/glthread/lock.c lock->waiting_writers_count++; lock 123 maint/gnulib/lib/glthread/lock.c if (cnd_wait (&lock->waiting_writers, &lock->lock) != thrd_success) lock 125 maint/gnulib/lib/glthread/lock.c lock->waiting_writers_count--; lock 126 maint/gnulib/lib/glthread/lock.c mtx_unlock (&lock->lock); lock 129 maint/gnulib/lib/glthread/lock.c lock->waiting_writers_count--; lock 131 maint/gnulib/lib/glthread/lock.c lock->runcount--; /* runcount becomes -1 */ lock 132 maint/gnulib/lib/glthread/lock.c if (mtx_unlock (&lock->lock) != thrd_success) lock 138 maint/gnulib/lib/glthread/lock.c glthread_rwlock_unlock (gl_rwlock_t *lock) lock 140 maint/gnulib/lib/glthread/lock.c if (lock->init_needed) lock 141 maint/gnulib/lib/glthread/lock.c call_once (&lock->init_once, lock->init_func); lock 142 maint/gnulib/lib/glthread/lock.c if (mtx_lock (&lock->lock) != thrd_success) lock 144 maint/gnulib/lib/glthread/lock.c if (lock->runcount < 0) lock 147 maint/gnulib/lib/glthread/lock.c if (!(lock->runcount == -1)) lock 149 maint/gnulib/lib/glthread/lock.c mtx_unlock (&lock->lock); lock 152 maint/gnulib/lib/glthread/lock.c lock->runcount = 0; lock 157 maint/gnulib/lib/glthread/lock.c if (!(lock->runcount > 0)) lock 159 maint/gnulib/lib/glthread/lock.c mtx_unlock (&lock->lock); lock 162 maint/gnulib/lib/glthread/lock.c lock->runcount--; lock 164 maint/gnulib/lib/glthread/lock.c if (lock->runcount == 0) lock 168 maint/gnulib/lib/glthread/lock.c if (lock->waiting_writers_count > 0) lock 171 maint/gnulib/lib/glthread/lock.c if (cnd_signal (&lock->waiting_writers) != thrd_success) lock 173 maint/gnulib/lib/glthread/lock.c mtx_unlock (&lock->lock); lock 180 maint/gnulib/lib/glthread/lock.c if (cnd_broadcast (&lock->waiting_readers) != thrd_success) lock 182 maint/gnulib/lib/glthread/lock.c mtx_unlock (&lock->lock); lock 187 maint/gnulib/lib/glthread/lock.c if (mtx_unlock (&lock->lock) != thrd_success) lock 193 maint/gnulib/lib/glthread/lock.c glthread_rwlock_destroy (gl_rwlock_t *lock) lock 195 maint/gnulib/lib/glthread/lock.c if (lock->init_needed) lock 196 maint/gnulib/lib/glthread/lock.c call_once (&lock->init_once, lock->init_func); lock 197 maint/gnulib/lib/glthread/lock.c mtx_destroy (&lock->lock); lock 198 maint/gnulib/lib/glthread/lock.c cnd_destroy (&lock->waiting_readers); lock 199 maint/gnulib/lib/glthread/lock.c cnd_destroy (&lock->waiting_writers); lock 206 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_init (gl_recursive_lock_t *lock) lock 208 maint/gnulib/lib/glthread/lock.c if (mtx_init (&lock->mutex, mtx_plain | mtx_recursive) != thrd_success) lock 210 maint/gnulib/lib/glthread/lock.c lock->init_needed = 0; lock 215 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_lock (gl_recursive_lock_t *lock) lock 217 maint/gnulib/lib/glthread/lock.c if (lock->init_needed) lock 218 maint/gnulib/lib/glthread/lock.c call_once (&lock->init_once, lock->init_func); lock 219 maint/gnulib/lib/glthread/lock.c if (mtx_lock (&lock->mutex) != thrd_success) lock 225 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) lock 227 maint/gnulib/lib/glthread/lock.c if (lock->init_needed) lock 228 maint/gnulib/lib/glthread/lock.c call_once (&lock->init_once, lock->init_func); lock 229 maint/gnulib/lib/glthread/lock.c if (mtx_unlock (&lock->mutex) != thrd_success) lock 235 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) lock 237 maint/gnulib/lib/glthread/lock.c if (lock->init_needed) lock 238 maint/gnulib/lib/glthread/lock.c call_once (&lock->init_once, lock->init_func); lock 239 maint/gnulib/lib/glthread/lock.c mtx_destroy (&lock->mutex); lock 263 maint/gnulib/lib/glthread/lock.c glthread_rwlock_init_for_glibc (pthread_rwlock_t *lock) lock 278 maint/gnulib/lib/glthread/lock.c err = pthread_rwlock_init(lock, &attributes); lock 289 maint/gnulib/lib/glthread/lock.c glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) lock 293 maint/gnulib/lib/glthread/lock.c err = pthread_rwlock_init (&lock->rwlock, NULL); lock 296 maint/gnulib/lib/glthread/lock.c lock->initialized = 1; lock 301 maint/gnulib/lib/glthread/lock.c glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) lock 303 maint/gnulib/lib/glthread/lock.c if (!lock->initialized) lock 307 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_lock (&lock->guard); lock 310 maint/gnulib/lib/glthread/lock.c if (!lock->initialized) lock 312 maint/gnulib/lib/glthread/lock.c err = glthread_rwlock_init_multithreaded (lock); lock 315 maint/gnulib/lib/glthread/lock.c pthread_mutex_unlock (&lock->guard); lock 319 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_unlock (&lock->guard); lock 323 maint/gnulib/lib/glthread/lock.c return pthread_rwlock_rdlock (&lock->rwlock); lock 327 maint/gnulib/lib/glthread/lock.c glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock) lock 329 maint/gnulib/lib/glthread/lock.c if (!lock->initialized) lock 333 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_lock (&lock->guard); lock 336 maint/gnulib/lib/glthread/lock.c if (!lock->initialized) lock 338 maint/gnulib/lib/glthread/lock.c err = glthread_rwlock_init_multithreaded (lock); lock 341 maint/gnulib/lib/glthread/lock.c pthread_mutex_unlock (&lock->guard); lock 345 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_unlock (&lock->guard); lock 349 maint/gnulib/lib/glthread/lock.c return pthread_rwlock_wrlock (&lock->rwlock); lock 353 maint/gnulib/lib/glthread/lock.c glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock) lock 355 maint/gnulib/lib/glthread/lock.c if (!lock->initialized) lock 357 maint/gnulib/lib/glthread/lock.c return pthread_rwlock_unlock (&lock->rwlock); lock 361 maint/gnulib/lib/glthread/lock.c glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock) lock 365 maint/gnulib/lib/glthread/lock.c if (!lock->initialized) lock 367 maint/gnulib/lib/glthread/lock.c err = pthread_rwlock_destroy (&lock->rwlock); lock 370 maint/gnulib/lib/glthread/lock.c lock->initialized = 0; lock 379 maint/gnulib/lib/glthread/lock.c glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) lock 383 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_init (&lock->lock, NULL); lock 386 maint/gnulib/lib/glthread/lock.c err = pthread_cond_init (&lock->waiting_readers, NULL); lock 389 maint/gnulib/lib/glthread/lock.c err = pthread_cond_init (&lock->waiting_writers, NULL); lock 392 maint/gnulib/lib/glthread/lock.c lock->waiting_writers_count = 0; lock 393 maint/gnulib/lib/glthread/lock.c lock->runcount = 0; lock 398 maint/gnulib/lib/glthread/lock.c glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) lock 402 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_lock (&lock->lock); lock 409 maint/gnulib/lib/glthread/lock.c while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) lock 413 maint/gnulib/lib/glthread/lock.c err = pthread_cond_wait (&lock->waiting_readers, &lock->lock); lock 416 maint/gnulib/lib/glthread/lock.c pthread_mutex_unlock (&lock->lock); lock 420 maint/gnulib/lib/glthread/lock.c lock->runcount++; lock 421 maint/gnulib/lib/glthread/lock.c return pthread_mutex_unlock (&lock->lock); lock 425 maint/gnulib/lib/glthread/lock.c glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock) lock 429 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_lock (&lock->lock); lock 433 maint/gnulib/lib/glthread/lock.c while (!(lock->runcount == 0)) lock 437 maint/gnulib/lib/glthread/lock.c lock->waiting_writers_count++; lock 438 maint/gnulib/lib/glthread/lock.c err = pthread_cond_wait (&lock->waiting_writers, &lock->lock); lock 441 maint/gnulib/lib/glthread/lock.c lock->waiting_writers_count--; lock 442 maint/gnulib/lib/glthread/lock.c pthread_mutex_unlock (&lock->lock); lock 445 maint/gnulib/lib/glthread/lock.c lock->waiting_writers_count--; lock 447 maint/gnulib/lib/glthread/lock.c lock->runcount--; /* runcount becomes -1 */ lock 448 maint/gnulib/lib/glthread/lock.c return pthread_mutex_unlock (&lock->lock); lock 452 maint/gnulib/lib/glthread/lock.c glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock) lock 456 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_lock (&lock->lock); lock 459 maint/gnulib/lib/glthread/lock.c if (lock->runcount < 0) lock 462 maint/gnulib/lib/glthread/lock.c if (!(lock->runcount == -1)) lock 464 maint/gnulib/lib/glthread/lock.c pthread_mutex_unlock (&lock->lock); lock 467 maint/gnulib/lib/glthread/lock.c lock->runcount = 0; lock 472 maint/gnulib/lib/glthread/lock.c if (!(lock->runcount > 0)) lock 474 maint/gnulib/lib/glthread/lock.c pthread_mutex_unlock (&lock->lock); lock 477 maint/gnulib/lib/glthread/lock.c lock->runcount--; lock 479 maint/gnulib/lib/glthread/lock.c if (lock->runcount == 0) lock 483 maint/gnulib/lib/glthread/lock.c if (lock->waiting_writers_count > 0) lock 486 maint/gnulib/lib/glthread/lock.c err = pthread_cond_signal (&lock->waiting_writers); lock 489 maint/gnulib/lib/glthread/lock.c pthread_mutex_unlock (&lock->lock); lock 496 maint/gnulib/lib/glthread/lock.c err = pthread_cond_broadcast (&lock->waiting_readers); lock 499 maint/gnulib/lib/glthread/lock.c pthread_mutex_unlock (&lock->lock); lock 504 maint/gnulib/lib/glthread/lock.c return pthread_mutex_unlock (&lock->lock); lock 508 maint/gnulib/lib/glthread/lock.c glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock) lock 512 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_destroy (&lock->lock); lock 515 maint/gnulib/lib/glthread/lock.c err = pthread_cond_destroy (&lock->waiting_readers); lock 518 maint/gnulib/lib/glthread/lock.c err = pthread_cond_destroy (&lock->waiting_writers); lock 533 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) lock 547 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_init (lock, &attributes); lock 562 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) lock 576 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_init (&lock->recmutex, &attributes); lock 585 maint/gnulib/lib/glthread/lock.c lock->initialized = 1; lock 590 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) lock 592 maint/gnulib/lib/glthread/lock.c if (!lock->initialized) lock 596 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_lock (&lock->guard); lock 599 maint/gnulib/lib/glthread/lock.c if (!lock->initialized) lock 601 maint/gnulib/lib/glthread/lock.c err = glthread_recursive_lock_init_multithreaded (lock); lock 604 maint/gnulib/lib/glthread/lock.c pthread_mutex_unlock (&lock->guard); lock 608 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_unlock (&lock->guard); lock 612 maint/gnulib/lib/glthread/lock.c return pthread_mutex_lock (&lock->recmutex); lock 616 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) lock 618 maint/gnulib/lib/glthread/lock.c if (!lock->initialized) lock 620 maint/gnulib/lib/glthread/lock.c return pthread_mutex_unlock (&lock->recmutex); lock 624 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) lock 628 maint/gnulib/lib/glthread/lock.c if (!lock->initialized) lock 630 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_destroy (&lock->recmutex); lock 633 maint/gnulib/lib/glthread/lock.c lock->initialized = 0; lock 642 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) lock 646 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_init (&lock->mutex, NULL); lock 649 maint/gnulib/lib/glthread/lock.c lock->owner = (pthread_t) 0; lock 650 maint/gnulib/lib/glthread/lock.c lock->depth = 0; lock 655 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) lock 658 maint/gnulib/lib/glthread/lock.c if (lock->owner != self) lock 662 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_lock (&lock->mutex); lock 665 maint/gnulib/lib/glthread/lock.c lock->owner = self; lock 667 maint/gnulib/lib/glthread/lock.c if (++(lock->depth) == 0) /* wraparound? */ lock 669 maint/gnulib/lib/glthread/lock.c lock->depth--; lock 676 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) lock 678 maint/gnulib/lib/glthread/lock.c if (lock->owner != pthread_self ()) lock 680 maint/gnulib/lib/glthread/lock.c if (lock->depth == 0) lock 682 maint/gnulib/lib/glthread/lock.c if (--(lock->depth) == 0) lock 684 maint/gnulib/lib/glthread/lock.c lock->owner = (pthread_t) 0; lock 685 maint/gnulib/lib/glthread/lock.c return pthread_mutex_unlock (&lock->mutex); lock 692 maint/gnulib/lib/glthread/lock.c glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) lock 694 maint/gnulib/lib/glthread/lock.c if (lock->owner != (pthread_t) 0) lock 696 maint/gnulib/lib/glthread/lock.c return pthread_mutex_destroy (&lock->mutex); lock 128 maint/gnulib/lib/glthread/lock.h extern int glthread_lock_init (gl_lock_t *lock); lock 129 maint/gnulib/lib/glthread/lock.h extern int glthread_lock_lock (gl_lock_t *lock); lock 130 maint/gnulib/lib/glthread/lock.h extern int glthread_lock_unlock (gl_lock_t *lock); lock 131 maint/gnulib/lib/glthread/lock.h extern int glthread_lock_destroy (gl_lock_t *lock); lock 140 maint/gnulib/lib/glthread/lock.h mtx_t lock; /* protects the remaining fields */ lock 158 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_init (gl_rwlock_t *lock); lock 159 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_rdlock (gl_rwlock_t *lock); lock 160 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_wrlock (gl_rwlock_t *lock); lock 161 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_unlock (gl_rwlock_t *lock); lock 162 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_destroy (gl_rwlock_t *lock); lock 185 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_init (gl_recursive_lock_t *lock); lock 186 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_lock (gl_recursive_lock_t *lock); lock 187 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); lock 188 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); lock 335 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_init_for_glibc (pthread_rwlock_t *lock); lock 371 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock); lock 372 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock); lock 373 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock); lock 374 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock); lock 375 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock); lock 383 maint/gnulib/lib/glthread/lock.h pthread_mutex_t lock; /* protects the remaining fields */ lock 406 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock); lock 407 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock); lock 408 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock); lock 409 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock); lock 410 maint/gnulib/lib/glthread/lock.h extern int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock); lock 440 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); lock 465 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); lock 466 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); lock 467 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); lock 468 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); lock 498 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); lock 499 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); lock 500 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); lock 501 maint/gnulib/lib/glthread/lock.h extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); lock 65 maint/gnulib/lib/mbtowc-lock.c static CRITICAL_SECTION lock; lock 76 maint/gnulib/lib/mbtowc-lock.c InitializeCriticalSection (&lock); lock 89 maint/gnulib/lib/mbtowc-lock.c return &lock; lock 52 maint/gnulib/lib/mbtowc-lock.h CRITICAL_SECTION *lock = gl_get_mbtowc_lock (); lock 55 maint/gnulib/lib/mbtowc-lock.h EnterCriticalSection (lock); lock 57 maint/gnulib/lib/mbtowc-lock.h LeaveCriticalSection (lock); lock 91 maint/gnulib/lib/mbtowc-lock.h pthread_mutex_t *lock = gl_get_mbtowc_lock (); lock 94 maint/gnulib/lib/mbtowc-lock.h if (pthread_mutex_lock (lock)) lock 97 maint/gnulib/lib/mbtowc-lock.h if (pthread_mutex_unlock (lock)) lock 113 maint/gnulib/lib/mbtowc-lock.h mtx_t *lock = gl_get_mbtowc_lock (); lock 116 maint/gnulib/lib/mbtowc-lock.h if (mtx_lock (lock) != thrd_success) lock 119 maint/gnulib/lib/mbtowc-lock.h if (mtx_unlock (lock) != thrd_success) lock 65 maint/gnulib/lib/nl_langinfo-lock.c static CRITICAL_SECTION lock; lock 76 maint/gnulib/lib/nl_langinfo-lock.c InitializeCriticalSection (&lock); lock 89 maint/gnulib/lib/nl_langinfo-lock.c return &lock; lock 194 maint/gnulib/lib/nl_langinfo.c CRITICAL_SECTION *lock = gl_get_nl_langinfo_lock (); lock 197 maint/gnulib/lib/nl_langinfo.c EnterCriticalSection (lock); lock 199 maint/gnulib/lib/nl_langinfo.c LeaveCriticalSection (lock); lock 233 maint/gnulib/lib/nl_langinfo.c pthread_mutex_t *lock = gl_get_nl_langinfo_lock (); lock 236 maint/gnulib/lib/nl_langinfo.c if (pthread_mutex_lock (lock)) lock 239 maint/gnulib/lib/nl_langinfo.c if (pthread_mutex_unlock (lock)) lock 255 maint/gnulib/lib/nl_langinfo.c mtx_t *lock = gl_get_nl_langinfo_lock (); lock 258 maint/gnulib/lib/nl_langinfo.c if (mtx_lock (lock) != thrd_success) lock 261 maint/gnulib/lib/nl_langinfo.c if (mtx_unlock (lock) != thrd_success) lock 71 maint/gnulib/lib/pipe-filter-gi.c CRITICAL_SECTION lock; /* protects the volatile fields */ lock 117 maint/gnulib/lib/pipe-filter-gi.c EnterCriticalSection (&filter->lock); lock 130 maint/gnulib/lib/pipe-filter-gi.c LeaveCriticalSection (&filter->lock); lock 135 maint/gnulib/lib/pipe-filter-gi.c LeaveCriticalSection (&filter->lock); lock 143 maint/gnulib/lib/pipe-filter-gi.c InitializeCriticalSection (&filter->lock); lock 144 maint/gnulib/lib/pipe-filter-gi.c EnterCriticalSection (&filter->lock); lock 170 maint/gnulib/lib/pipe-filter-gi.c LeaveCriticalSection (&filter->lock); lock 176 maint/gnulib/lib/pipe-filter-gi.c EnterCriticalSection (&filter->lock); lock 209 maint/gnulib/lib/pipe-filter-gi.c LeaveCriticalSection (&filter->lock); lock 216 maint/gnulib/lib/pipe-filter-gi.c DeleteCriticalSection (&filter->lock); lock 54 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_init (pthread_rwlock_t *lock, lock 57 maint/gnulib/lib/pthread-rwlock.c glwthread_timedrwlock_init (lock); lock 62 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_rdlock (pthread_rwlock_t *lock) lock 64 maint/gnulib/lib/pthread-rwlock.c return glwthread_timedrwlock_rdlock (lock); lock 68 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_wrlock (pthread_rwlock_t *lock) lock 70 maint/gnulib/lib/pthread-rwlock.c return glwthread_timedrwlock_wrlock (lock); lock 74 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_tryrdlock (pthread_rwlock_t *lock) lock 76 maint/gnulib/lib/pthread-rwlock.c return glwthread_timedrwlock_tryrdlock (lock); lock 80 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_trywrlock (pthread_rwlock_t *lock) lock 82 maint/gnulib/lib/pthread-rwlock.c return glwthread_timedrwlock_trywrlock (lock); lock 86 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_timedrdlock (pthread_rwlock_t *lock, lock 89 maint/gnulib/lib/pthread-rwlock.c return glwthread_timedrwlock_timedrdlock (lock, abstime); lock 93 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_timedwrlock (pthread_rwlock_t *lock, lock 96 maint/gnulib/lib/pthread-rwlock.c return glwthread_timedrwlock_timedwrlock (lock, abstime); lock 100 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_unlock (pthread_rwlock_t *lock) lock 102 maint/gnulib/lib/pthread-rwlock.c return glwthread_timedrwlock_unlock (lock); lock 106 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_destroy (pthread_rwlock_t *lock) lock 108 maint/gnulib/lib/pthread-rwlock.c return glwthread_timedrwlock_destroy (lock); lock 117 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_init (pthread_rwlock_t *lock, lock 122 maint/gnulib/lib/pthread-rwlock.c err = pthread_mutex_init (&lock->lock, NULL); lock 125 maint/gnulib/lib/pthread-rwlock.c err = pthread_cond_init (&lock->waiting_readers, NULL); lock 128 maint/gnulib/lib/pthread-rwlock.c err = pthread_cond_init (&lock->waiting_writers, NULL); lock 131 maint/gnulib/lib/pthread-rwlock.c lock->waiting_writers_count = 0; lock 132 maint/gnulib/lib/pthread-rwlock.c lock->runcount = 0; lock 137 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_rdlock (pthread_rwlock_t *lock) lock 141 maint/gnulib/lib/pthread-rwlock.c err = pthread_mutex_lock (&lock->lock); lock 148 maint/gnulib/lib/pthread-rwlock.c while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) lock 152 maint/gnulib/lib/pthread-rwlock.c err = pthread_cond_wait (&lock->waiting_readers, &lock->lock); lock 155 maint/gnulib/lib/pthread-rwlock.c pthread_mutex_unlock (&lock->lock); lock 159 maint/gnulib/lib/pthread-rwlock.c lock->runcount++; lock 160 maint/gnulib/lib/pthread-rwlock.c return pthread_mutex_unlock (&lock->lock); lock 164 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_wrlock (pthread_rwlock_t *lock) lock 168 maint/gnulib/lib/pthread-rwlock.c err = pthread_mutex_lock (&lock->lock); lock 172 maint/gnulib/lib/pthread-rwlock.c while (!(lock->runcount == 0)) lock 176 maint/gnulib/lib/pthread-rwlock.c lock->waiting_writers_count++; lock 177 maint/gnulib/lib/pthread-rwlock.c err = pthread_cond_wait (&lock->waiting_writers, &lock->lock); lock 180 maint/gnulib/lib/pthread-rwlock.c lock->waiting_writers_count--; lock 181 maint/gnulib/lib/pthread-rwlock.c pthread_mutex_unlock (&lock->lock); lock 184 maint/gnulib/lib/pthread-rwlock.c lock->waiting_writers_count--; lock 186 maint/gnulib/lib/pthread-rwlock.c lock->runcount--; /* runcount becomes -1 */ lock 187 maint/gnulib/lib/pthread-rwlock.c return pthread_mutex_unlock (&lock->lock); lock 191 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_tryrdlock (pthread_rwlock_t *lock) lock 195 maint/gnulib/lib/pthread-rwlock.c err = pthread_mutex_lock (&lock->lock); lock 202 maint/gnulib/lib/pthread-rwlock.c if (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) lock 205 maint/gnulib/lib/pthread-rwlock.c pthread_mutex_unlock (&lock->lock); lock 208 maint/gnulib/lib/pthread-rwlock.c lock->runcount++; lock 209 maint/gnulib/lib/pthread-rwlock.c return pthread_mutex_unlock (&lock->lock); lock 213 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_trywrlock (pthread_rwlock_t *lock) lock 217 maint/gnulib/lib/pthread-rwlock.c err = pthread_mutex_lock (&lock->lock); lock 221 maint/gnulib/lib/pthread-rwlock.c if (!(lock->runcount == 0)) lock 224 maint/gnulib/lib/pthread-rwlock.c pthread_mutex_unlock (&lock->lock); lock 227 maint/gnulib/lib/pthread-rwlock.c lock->runcount--; /* runcount becomes -1 */ lock 228 maint/gnulib/lib/pthread-rwlock.c return pthread_mutex_unlock (&lock->lock); lock 232 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_timedrdlock (pthread_rwlock_t *lock, lock 237 maint/gnulib/lib/pthread-rwlock.c err = pthread_mutex_lock (&lock->lock); lock 244 maint/gnulib/lib/pthread-rwlock.c while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) lock 248 maint/gnulib/lib/pthread-rwlock.c err = pthread_cond_timedwait (&lock->waiting_readers, &lock->lock, lock 252 maint/gnulib/lib/pthread-rwlock.c pthread_mutex_unlock (&lock->lock); lock 256 maint/gnulib/lib/pthread-rwlock.c lock->runcount++; lock 257 maint/gnulib/lib/pthread-rwlock.c return pthread_mutex_unlock (&lock->lock); lock 261 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_timedwrlock (pthread_rwlock_t *lock, lock 266 maint/gnulib/lib/pthread-rwlock.c err = pthread_mutex_lock (&lock->lock); lock 270 maint/gnulib/lib/pthread-rwlock.c while (!(lock->runcount == 0)) lock 274 maint/gnulib/lib/pthread-rwlock.c lock->waiting_writers_count++; lock 275 maint/gnulib/lib/pthread-rwlock.c err = pthread_cond_timedwait (&lock->waiting_writers, &lock->lock, lock 279 maint/gnulib/lib/pthread-rwlock.c lock->waiting_writers_count--; lock 280 maint/gnulib/lib/pthread-rwlock.c pthread_mutex_unlock (&lock->lock); lock 283 maint/gnulib/lib/pthread-rwlock.c lock->waiting_writers_count--; lock 285 maint/gnulib/lib/pthread-rwlock.c lock->runcount--; /* runcount becomes -1 */ lock 286 maint/gnulib/lib/pthread-rwlock.c return pthread_mutex_unlock (&lock->lock); lock 290 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_unlock (pthread_rwlock_t *lock) lock 294 maint/gnulib/lib/pthread-rwlock.c err = pthread_mutex_lock (&lock->lock); lock 297 maint/gnulib/lib/pthread-rwlock.c if (lock->runcount < 0) lock 300 maint/gnulib/lib/pthread-rwlock.c if (!(lock->runcount == -1)) lock 302 maint/gnulib/lib/pthread-rwlock.c pthread_mutex_unlock (&lock->lock); lock 305 maint/gnulib/lib/pthread-rwlock.c lock->runcount = 0; lock 310 maint/gnulib/lib/pthread-rwlock.c if (!(lock->runcount > 0)) lock 312 maint/gnulib/lib/pthread-rwlock.c pthread_mutex_unlock (&lock->lock); lock 315 maint/gnulib/lib/pthread-rwlock.c lock->runcount--; lock 317 maint/gnulib/lib/pthread-rwlock.c if (lock->runcount == 0) lock 321 maint/gnulib/lib/pthread-rwlock.c if (lock->waiting_writers_count > 0) lock 324 maint/gnulib/lib/pthread-rwlock.c err = pthread_cond_signal (&lock->waiting_writers); lock 327 maint/gnulib/lib/pthread-rwlock.c pthread_mutex_unlock (&lock->lock); lock 334 maint/gnulib/lib/pthread-rwlock.c err = pthread_cond_broadcast (&lock->waiting_readers); lock 337 maint/gnulib/lib/pthread-rwlock.c pthread_mutex_unlock (&lock->lock); lock 342 maint/gnulib/lib/pthread-rwlock.c return pthread_mutex_unlock (&lock->lock); lock 346 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_destroy (pthread_rwlock_t *lock) lock 350 maint/gnulib/lib/pthread-rwlock.c err = pthread_mutex_destroy (&lock->lock); lock 353 maint/gnulib/lib/pthread-rwlock.c err = pthread_cond_destroy (&lock->waiting_readers); lock 356 maint/gnulib/lib/pthread-rwlock.c err = pthread_cond_destroy (&lock->waiting_writers); lock 365 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_timedrdlock (pthread_rwlock_t *lock, lock 376 maint/gnulib/lib/pthread-rwlock.c err = pthread_rwlock_tryrdlock (lock); lock 422 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_timedwrlock (pthread_rwlock_t *lock, lock 433 maint/gnulib/lib/pthread-rwlock.c err = pthread_rwlock_trywrlock (lock); lock 487 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_init (pthread_rwlock_t *lock, lock 490 maint/gnulib/lib/pthread-rwlock.c *lock = 0; lock 495 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_rdlock (pthread_rwlock_t *lock) lock 497 maint/gnulib/lib/pthread-rwlock.c if (*lock < 0) lock 499 maint/gnulib/lib/pthread-rwlock.c (*lock)++; lock 504 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_wrlock (pthread_rwlock_t *lock) lock 506 maint/gnulib/lib/pthread-rwlock.c if (*lock != 0) lock 508 maint/gnulib/lib/pthread-rwlock.c *lock = -1; lock 513 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_tryrdlock (pthread_rwlock_t *lock) lock 515 maint/gnulib/lib/pthread-rwlock.c return pthread_rwlock_rdlock (lock); lock 519 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_trywrlock (pthread_rwlock_t *lock) lock 521 maint/gnulib/lib/pthread-rwlock.c return pthread_rwlock_wrlock (lock); lock 525 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_timedrdlock (pthread_rwlock_t *lock, lock 528 maint/gnulib/lib/pthread-rwlock.c return pthread_rwlock_rdlock (lock); lock 532 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_timedwrlock (pthread_rwlock_t *lock, lock 535 maint/gnulib/lib/pthread-rwlock.c return pthread_rwlock_wrlock (lock); lock 539 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_unlock (pthread_rwlock_t *lock) lock 541 maint/gnulib/lib/pthread-rwlock.c if (*lock == 0) lock 543 maint/gnulib/lib/pthread-rwlock.c if (*lock < 0) lock 544 maint/gnulib/lib/pthread-rwlock.c *lock = 0; lock 546 maint/gnulib/lib/pthread-rwlock.c (*lock)--; lock 551 maint/gnulib/lib/pthread-rwlock.c pthread_rwlock_destroy (pthread_rwlock_t *lock) lock 553 maint/gnulib/lib/pthread-rwlock.c if (*lock) lock 34 maint/gnulib/lib/pthread-spin.c pthread_spin_init (pthread_spinlock_t *lock, lock 37 maint/gnulib/lib/pthread-spin.c glwthread_spin_init (lock); lock 42 maint/gnulib/lib/pthread-spin.c pthread_spin_lock (pthread_spinlock_t *lock) lock 44 maint/gnulib/lib/pthread-spin.c return glwthread_spin_lock (lock); lock 48 maint/gnulib/lib/pthread-spin.c pthread_spin_trylock (pthread_spinlock_t *lock) lock 50 maint/gnulib/lib/pthread-spin.c return glwthread_spin_trylock (lock); lock 54 maint/gnulib/lib/pthread-spin.c pthread_spin_unlock (pthread_spinlock_t *lock) lock 56 maint/gnulib/lib/pthread-spin.c return glwthread_spin_unlock (lock); lock 60 maint/gnulib/lib/pthread-spin.c pthread_spin_destroy (pthread_spinlock_t *lock) lock 62 maint/gnulib/lib/pthread-spin.c return glwthread_spin_destroy (lock); lock 83 maint/gnulib/lib/pthread-spin.c pthread_spin_init (pthread_spinlock_t *lock, lock 86 maint/gnulib/lib/pthread-spin.c __atomic_store_n ((unsigned int *) lock, 0, __ATOMIC_SEQ_CST); lock 91 maint/gnulib/lib/pthread-spin.c pthread_spin_lock (pthread_spinlock_t *lock) lock 96 maint/gnulib/lib/pthread-spin.c __atomic_compare_exchange_n ((unsigned int *) lock, &zero, 1, false, lock 103 maint/gnulib/lib/pthread-spin.c pthread_spin_trylock (pthread_spinlock_t *lock) lock 107 maint/gnulib/lib/pthread-spin.c __atomic_compare_exchange_n ((unsigned int *) lock, &zero, 1, false, lock 114 maint/gnulib/lib/pthread-spin.c pthread_spin_unlock (pthread_spinlock_t *lock) lock 118 maint/gnulib/lib/pthread-spin.c if (!__atomic_compare_exchange_n ((unsigned int *) lock, &one, 0, false, lock 129 maint/gnulib/lib/pthread-spin.c pthread_spin_init (pthread_spinlock_t *lock, lock 132 maint/gnulib/lib/pthread-spin.c __atomic_clear (lock, __ATOMIC_SEQ_CST); lock 137 maint/gnulib/lib/pthread-spin.c pthread_spin_lock (pthread_spinlock_t *lock) lock 139 maint/gnulib/lib/pthread-spin.c while (__atomic_test_and_set (lock, __ATOMIC_SEQ_CST)) lock 145 maint/gnulib/lib/pthread-spin.c pthread_spin_trylock (pthread_spinlock_t *lock) lock 147 maint/gnulib/lib/pthread-spin.c if (__atomic_test_and_set (lock, __ATOMIC_SEQ_CST)) lock 153 maint/gnulib/lib/pthread-spin.c pthread_spin_unlock (pthread_spinlock_t *lock) lock 155 maint/gnulib/lib/pthread-spin.c __atomic_clear (lock, __ATOMIC_SEQ_CST); lock 162 maint/gnulib/lib/pthread-spin.c pthread_spin_destroy (pthread_spinlock_t *lock) lock 175 maint/gnulib/lib/pthread-spin.c pthread_spin_init (pthread_spinlock_t *lock, lock 178 maint/gnulib/lib/pthread-spin.c * (volatile unsigned int *) lock = 0; lock 184 maint/gnulib/lib/pthread-spin.c pthread_spin_lock (pthread_spinlock_t *lock) lock 187 maint/gnulib/lib/pthread-spin.c while (__sync_val_compare_and_swap ((unsigned int *) lock, 0, 1) != 0) lock 193 maint/gnulib/lib/pthread-spin.c pthread_spin_trylock (pthread_spinlock_t *lock) lock 195 maint/gnulib/lib/pthread-spin.c if (__sync_val_compare_and_swap ((unsigned int *) lock, 0, 1) != 0) lock 201 maint/gnulib/lib/pthread-spin.c pthread_spin_unlock (pthread_spinlock_t *lock) lock 204 maint/gnulib/lib/pthread-spin.c if (__sync_val_compare_and_swap ((unsigned int *) lock, 1, 0) != 1) lock 210 maint/gnulib/lib/pthread-spin.c pthread_spin_destroy (pthread_spinlock_t *lock) lock 219 maint/gnulib/lib/pthread-spin.c pthread_spin_init (pthread_spinlock_t *lock, lock 222 maint/gnulib/lib/pthread-spin.c return pthread_mutex_init (lock, NULL); lock 226 maint/gnulib/lib/pthread-spin.c pthread_spin_lock (pthread_spinlock_t *lock) lock 228 maint/gnulib/lib/pthread-spin.c return pthread_mutex_lock (lock); lock 232 maint/gnulib/lib/pthread-spin.c pthread_spin_trylock (pthread_spinlock_t *lock) lock 234 maint/gnulib/lib/pthread-spin.c return pthread_mutex_trylock (lock); lock 238 maint/gnulib/lib/pthread-spin.c pthread_spin_unlock (pthread_spinlock_t *lock) lock 240 maint/gnulib/lib/pthread-spin.c return pthread_mutex_unlock (lock); lock 244 maint/gnulib/lib/pthread-spin.c pthread_spin_destroy (pthread_spinlock_t *lock) lock 246 maint/gnulib/lib/pthread-spin.c return pthread_mutex_destroy (lock); lock 255 maint/gnulib/lib/pthread-spin.c pthread_spin_init (_GL_UNUSED pthread_spinlock_t *lock, lock 262 maint/gnulib/lib/pthread-spin.c pthread_spin_lock (_GL_UNUSED pthread_spinlock_t *lock) lock 268 maint/gnulib/lib/pthread-spin.c pthread_spin_trylock (_GL_UNUSED pthread_spinlock_t *lock) lock 274 maint/gnulib/lib/pthread-spin.c pthread_spin_unlock (_GL_UNUSED pthread_spinlock_t *lock) lock 280 maint/gnulib/lib/pthread-spin.c pthread_spin_destroy (_GL_UNUSED pthread_spinlock_t *lock) lock 280 maint/gnulib/lib/pthread.in.h pthread_mutex_t lock; /* protects the remaining fields */ lock 1155 maint/gnulib/lib/pthread.in.h (pthread_rwlock_t *restrict lock, lock 1159 maint/gnulib/lib/pthread.in.h (pthread_rwlock_t *restrict lock, lock 1164 maint/gnulib/lib/pthread.in.h (pthread_rwlock_t *restrict lock, lock 1169 maint/gnulib/lib/pthread.in.h (pthread_rwlock_t *restrict lock, lock 1245 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_rwlock_rdlock, int, (pthread_rwlock_t *lock) lock 1247 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_rwlock_rdlock, int, (pthread_rwlock_t *lock)); lock 1250 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_rwlock_rdlock, int, (pthread_rwlock_t *lock) lock 1253 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_rwlock_rdlock, int, (pthread_rwlock_t *lock)); lock 1272 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_rwlock_wrlock, int, (pthread_rwlock_t *lock) lock 1274 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_rwlock_wrlock, int, (pthread_rwlock_t *lock)); lock 1277 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_rwlock_wrlock, int, (pthread_rwlock_t *lock) lock 1280 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_rwlock_wrlock, int, (pthread_rwlock_t *lock)); lock 1299 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_rwlock_tryrdlock, int, (pthread_rwlock_t *lock) lock 1301 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_rwlock_tryrdlock, int, (pthread_rwlock_t *lock)); lock 1304 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_rwlock_tryrdlock, int, (pthread_rwlock_t *lock) lock 1307 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_rwlock_tryrdlock, int, (pthread_rwlock_t *lock)); lock 1326 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_rwlock_trywrlock, int, (pthread_rwlock_t *lock) lock 1328 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_rwlock_trywrlock, int, (pthread_rwlock_t *lock)); lock 1331 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_rwlock_trywrlock, int, (pthread_rwlock_t *lock) lock 1334 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_rwlock_trywrlock, int, (pthread_rwlock_t *lock)); lock 1354 maint/gnulib/lib/pthread.in.h (pthread_rwlock_t *restrict lock, lock 1358 maint/gnulib/lib/pthread.in.h (pthread_rwlock_t *restrict lock, lock 1363 maint/gnulib/lib/pthread.in.h (pthread_rwlock_t *restrict lock, lock 1368 maint/gnulib/lib/pthread.in.h (pthread_rwlock_t *restrict lock, lock 1389 maint/gnulib/lib/pthread.in.h (pthread_rwlock_t *restrict lock, lock 1393 maint/gnulib/lib/pthread.in.h (pthread_rwlock_t *restrict lock, lock 1398 maint/gnulib/lib/pthread.in.h (pthread_rwlock_t *restrict lock, lock 1403 maint/gnulib/lib/pthread.in.h (pthread_rwlock_t *restrict lock, lock 1423 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_rwlock_unlock, int, (pthread_rwlock_t *lock) lock 1425 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_rwlock_unlock, int, (pthread_rwlock_t *lock)); lock 1428 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_rwlock_unlock, int, (pthread_rwlock_t *lock) lock 1431 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_rwlock_unlock, int, (pthread_rwlock_t *lock)); lock 1450 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_rwlock_destroy, int, (pthread_rwlock_t *lock) lock 1452 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_rwlock_destroy, int, (pthread_rwlock_t *lock)); lock 1455 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_rwlock_destroy, int, (pthread_rwlock_t *lock) lock 1458 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_rwlock_destroy, int, (pthread_rwlock_t *lock)); lock 1838 maint/gnulib/lib/pthread.in.h (pthread_spinlock_t *lock, int shared_across_processes) lock 1841 maint/gnulib/lib/pthread.in.h (pthread_spinlock_t *lock, int shared_across_processes)); lock 1845 maint/gnulib/lib/pthread.in.h (pthread_spinlock_t *lock, int shared_across_processes) lock 1849 maint/gnulib/lib/pthread.in.h (pthread_spinlock_t *lock, int shared_across_processes)); lock 1868 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_spin_lock, int, (pthread_spinlock_t *lock) lock 1870 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_spin_lock, int, (pthread_spinlock_t *lock)); lock 1873 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_spin_lock, int, (pthread_spinlock_t *lock) lock 1876 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_spin_lock, int, (pthread_spinlock_t *lock)); lock 1895 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_spin_trylock, int, (pthread_spinlock_t *lock) lock 1897 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_spin_trylock, int, (pthread_spinlock_t *lock)); lock 1900 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_spin_trylock, int, (pthread_spinlock_t *lock) lock 1903 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_spin_trylock, int, (pthread_spinlock_t *lock)); lock 1922 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_spin_unlock, int, (pthread_spinlock_t *lock) lock 1924 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_spin_unlock, int, (pthread_spinlock_t *lock)); lock 1927 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_spin_unlock, int, (pthread_spinlock_t *lock) lock 1930 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_spin_unlock, int, (pthread_spinlock_t *lock)); lock 1949 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_spin_destroy, int, (pthread_spinlock_t *lock) lock 1951 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_spin_destroy, int, (pthread_spinlock_t *lock)); lock 1954 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_spin_destroy, int, (pthread_spinlock_t *lock) lock 1957 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_spin_destroy, int, (pthread_spinlock_t *lock)); lock 214 maint/gnulib/lib/random.c __libc_lock_define_initialized (static, lock) lock 227 maint/gnulib/lib/random.c __libc_lock_lock (lock); lock 229 maint/gnulib/lib/random.c __libc_lock_unlock (lock); lock 252 maint/gnulib/lib/random.c __libc_lock_lock (lock); lock 258 maint/gnulib/lib/random.c __libc_lock_unlock (lock); lock 278 maint/gnulib/lib/random.c __libc_lock_lock (lock); lock 285 maint/gnulib/lib/random.c __libc_lock_unlock (lock); lock 308 maint/gnulib/lib/random.c __libc_lock_lock (lock); lock 312 maint/gnulib/lib/random.c __libc_lock_unlock (lock); lock 638 maint/gnulib/lib/regcomp.c lock_fini (dfa->lock); lock 759 maint/gnulib/lib/regcomp.c if (__glibc_unlikely (err == REG_NOERROR && lock_init (dfa->lock) != 0)) lock 781 maint/gnulib/lib/regcomp.c lock_fini (dfa->lock); lock 814 maint/gnulib/lib/regcomp.c lock_fini (dfa->lock); lock 52 maint/gnulib/lib/regex_internal.h # define lock_init(lock) (__libc_lock_init (lock), 0) lock 53 maint/gnulib/lib/regex_internal.h # define lock_fini(lock) ((void) 0) lock 54 maint/gnulib/lib/regex_internal.h # define lock_lock(lock) __libc_lock_lock (lock) lock 55 maint/gnulib/lib/regex_internal.h # define lock_unlock(lock) __libc_lock_unlock (lock) lock 59 maint/gnulib/lib/regex_internal.h # define lock_init(lock) glthread_lock_init (&(lock)) lock 60 maint/gnulib/lib/regex_internal.h # define lock_fini(lock) glthread_lock_destroy (&(lock)) lock 61 maint/gnulib/lib/regex_internal.h # define lock_lock(lock) glthread_lock_lock (&(lock)) lock 62 maint/gnulib/lib/regex_internal.h # define lock_unlock(lock) glthread_lock_unlock (&(lock)) lock 66 maint/gnulib/lib/regex_internal.h # define lock_init(lock) pthread_mutex_init (&(lock), 0) lock 67 maint/gnulib/lib/regex_internal.h # define lock_fini(lock) pthread_mutex_destroy (&(lock)) lock 68 maint/gnulib/lib/regex_internal.h # define lock_lock(lock) pthread_mutex_lock (&(lock)) lock 69 maint/gnulib/lib/regex_internal.h # define lock_unlock(lock) pthread_mutex_unlock (&(lock)) lock 72 maint/gnulib/lib/regex_internal.h # define lock_init(lock) 0 lock 73 maint/gnulib/lib/regex_internal.h # define lock_fini(lock) ((void) 0) lock 75 maint/gnulib/lib/regex_internal.h # define lock_lock(lock) ((void) dfa) lock 76 maint/gnulib/lib/regex_internal.h # define lock_unlock(lock) ((void) 0) lock 682 maint/gnulib/lib/regex_internal.h lock_define (lock) lock 214 maint/gnulib/lib/regexec.c lock_lock (dfa->lock); lock 221 maint/gnulib/lib/regexec.c lock_unlock (dfa->lock); lock 391 maint/gnulib/lib/regexec.c lock_lock (dfa->lock); lock 455 maint/gnulib/lib/regexec.c lock_unlock (dfa->lock); lock 65 maint/gnulib/lib/setlocale-lock.c static CRITICAL_SECTION lock; lock 76 maint/gnulib/lib/setlocale-lock.c InitializeCriticalSection (&lock); lock 89 maint/gnulib/lib/setlocale-lock.c return &lock; lock 191 maint/gnulib/lib/setlocale_null.c CRITICAL_SECTION *lock = gl_get_setlocale_null_lock (); lock 194 maint/gnulib/lib/setlocale_null.c EnterCriticalSection (lock); lock 196 maint/gnulib/lib/setlocale_null.c LeaveCriticalSection (lock); lock 230 maint/gnulib/lib/setlocale_null.c pthread_mutex_t *lock = gl_get_setlocale_null_lock (); lock 233 maint/gnulib/lib/setlocale_null.c if (pthread_mutex_lock (lock)) lock 236 maint/gnulib/lib/setlocale_null.c if (pthread_mutex_unlock (lock)) lock 252 maint/gnulib/lib/setlocale_null.c mtx_t *lock = gl_get_setlocale_null_lock (); lock 255 maint/gnulib/lib/setlocale_null.c if (mtx_lock (lock) != thrd_success) lock 258 maint/gnulib/lib/setlocale_null.c if (mtx_unlock (lock) != thrd_success) lock 169 maint/gnulib/lib/windows-cond.c InitializeCriticalSection (&cond->lock); lock 197 maint/gnulib/lib/windows-cond.c EnterCriticalSection (&cond->lock); lock 201 maint/gnulib/lib/windows-cond.c LeaveCriticalSection (&cond->lock); lock 217 maint/gnulib/lib/windows-cond.c EnterCriticalSection (&cond->lock); lock 219 maint/gnulib/lib/windows-cond.c LeaveCriticalSection (&cond->lock); lock 276 maint/gnulib/lib/windows-cond.c EnterCriticalSection (&cond->lock); lock 280 maint/gnulib/lib/windows-cond.c LeaveCriticalSection (&cond->lock); lock 297 maint/gnulib/lib/windows-cond.c EnterCriticalSection (&cond->lock); lock 299 maint/gnulib/lib/windows-cond.c LeaveCriticalSection (&cond->lock); lock 347 maint/gnulib/lib/windows-cond.c EnterCriticalSection (&cond->lock); lock 364 maint/gnulib/lib/windows-cond.c LeaveCriticalSection (&cond->lock); lock 391 maint/gnulib/lib/windows-cond.c EnterCriticalSection (&cond->lock); lock 397 maint/gnulib/lib/windows-cond.c LeaveCriticalSection (&cond->lock); lock 408 maint/gnulib/lib/windows-cond.c EnterCriticalSection (&cond->lock); lock 414 maint/gnulib/lib/windows-cond.c LeaveCriticalSection (&cond->lock); lock 426 maint/gnulib/lib/windows-cond.c DeleteCriticalSection (&cond->lock); lock 48 maint/gnulib/lib/windows-cond.h CRITICAL_SECTION lock; /* protects the remaining fields */ lock 30 maint/gnulib/lib/windows-mutex.c InitializeCriticalSection (&mutex->lock); lock 52 maint/gnulib/lib/windows-mutex.c EnterCriticalSection (&mutex->lock); lock 73 maint/gnulib/lib/windows-mutex.c if (!TryEnterCriticalSection (&mutex->lock)) lock 83 maint/gnulib/lib/windows-mutex.c LeaveCriticalSection (&mutex->lock); lock 92 maint/gnulib/lib/windows-mutex.c DeleteCriticalSection (&mutex->lock); lock 31 maint/gnulib/lib/windows-mutex.h CRITICAL_SECTION lock; lock 35 maint/gnulib/lib/windows-once.c InitializeCriticalSection (&once_control->lock); lock 36 maint/gnulib/lib/windows-once.c EnterCriticalSection (&once_control->lock); lock 40 maint/gnulib/lib/windows-once.c LeaveCriticalSection (&once_control->lock); lock 55 maint/gnulib/lib/windows-once.c EnterCriticalSection (&once_control->lock); lock 56 maint/gnulib/lib/windows-once.c LeaveCriticalSection (&once_control->lock); lock 30 maint/gnulib/lib/windows-once.h CRITICAL_SECTION lock; lock 32 maint/gnulib/lib/windows-recmutex.c InitializeCriticalSection (&mutex->lock); lock 58 maint/gnulib/lib/windows-recmutex.c EnterCriticalSection (&mutex->lock); lock 91 maint/gnulib/lib/windows-recmutex.c if (!TryEnterCriticalSection (&mutex->lock)) lock 114 maint/gnulib/lib/windows-recmutex.c LeaveCriticalSection (&mutex->lock); lock 124 maint/gnulib/lib/windows-recmutex.c DeleteCriticalSection (&mutex->lock); lock 37 maint/gnulib/lib/windows-recmutex.h CRITICAL_SECTION lock; lock 124 maint/gnulib/lib/windows-rwlock.c glwthread_rwlock_init (glwthread_rwlock_t *lock) lock 126 maint/gnulib/lib/windows-rwlock.c InitializeCriticalSection (&lock->lock); lock 127 maint/gnulib/lib/windows-rwlock.c glwthread_waitqueue_init (&lock->waiting_readers); lock 128 maint/gnulib/lib/windows-rwlock.c glwthread_waitqueue_init (&lock->waiting_writers); lock 129 maint/gnulib/lib/windows-rwlock.c lock->runcount = 0; lock 130 maint/gnulib/lib/windows-rwlock.c lock->guard.done = 1; lock 134 maint/gnulib/lib/windows-rwlock.c glwthread_rwlock_rdlock (glwthread_rwlock_t *lock) lock 136 maint/gnulib/lib/windows-rwlock.c if (!lock->guard.done) lock 138 maint/gnulib/lib/windows-rwlock.c if (InterlockedIncrement (&lock->guard.started) == 0) lock 140 maint/gnulib/lib/windows-rwlock.c glwthread_rwlock_init (lock); lock 144 maint/gnulib/lib/windows-rwlock.c InterlockedDecrement (&lock->guard.started); lock 147 maint/gnulib/lib/windows-rwlock.c while (!lock->guard.done) lock 151 maint/gnulib/lib/windows-rwlock.c EnterCriticalSection (&lock->lock); lock 156 maint/gnulib/lib/windows-rwlock.c if (!(lock->runcount + 1 > 0 && lock->waiting_writers.count == 0)) lock 160 maint/gnulib/lib/windows-rwlock.c HANDLE event = glwthread_waitqueue_add (&lock->waiting_readers); lock 164 maint/gnulib/lib/windows-rwlock.c LeaveCriticalSection (&lock->lock); lock 172 maint/gnulib/lib/windows-rwlock.c if (!(lock->runcount > 0)) lock 181 maint/gnulib/lib/windows-rwlock.c LeaveCriticalSection (&lock->lock); lock 183 maint/gnulib/lib/windows-rwlock.c EnterCriticalSection (&lock->lock); lock 185 maint/gnulib/lib/windows-rwlock.c while (!(lock->runcount + 1 > 0)); lock 188 maint/gnulib/lib/windows-rwlock.c lock->runcount++; lock 189 maint/gnulib/lib/windows-rwlock.c LeaveCriticalSection (&lock->lock); lock 194 maint/gnulib/lib/windows-rwlock.c glwthread_rwlock_wrlock (glwthread_rwlock_t *lock) lock 196 maint/gnulib/lib/windows-rwlock.c if (!lock->guard.done) lock 198 maint/gnulib/lib/windows-rwlock.c if (InterlockedIncrement (&lock->guard.started) == 0) lock 200 maint/gnulib/lib/windows-rwlock.c glwthread_rwlock_init (lock); lock 204 maint/gnulib/lib/windows-rwlock.c InterlockedDecrement (&lock->guard.started); lock 207 maint/gnulib/lib/windows-rwlock.c while (!lock->guard.done) lock 211 maint/gnulib/lib/windows-rwlock.c EnterCriticalSection (&lock->lock); lock 213 maint/gnulib/lib/windows-rwlock.c if (!(lock->runcount == 0)) lock 217 maint/gnulib/lib/windows-rwlock.c HANDLE event = glwthread_waitqueue_add (&lock->waiting_writers); lock 221 maint/gnulib/lib/windows-rwlock.c LeaveCriticalSection (&lock->lock); lock 229 maint/gnulib/lib/windows-rwlock.c if (!(lock->runcount == -1)) lock 238 maint/gnulib/lib/windows-rwlock.c LeaveCriticalSection (&lock->lock); lock 240 maint/gnulib/lib/windows-rwlock.c EnterCriticalSection (&lock->lock); lock 242 maint/gnulib/lib/windows-rwlock.c while (!(lock->runcount == 0)); lock 245 maint/gnulib/lib/windows-rwlock.c lock->runcount--; /* runcount becomes -1 */ lock 246 maint/gnulib/lib/windows-rwlock.c LeaveCriticalSection (&lock->lock); lock 251 maint/gnulib/lib/windows-rwlock.c glwthread_rwlock_tryrdlock (glwthread_rwlock_t *lock) lock 253 maint/gnulib/lib/windows-rwlock.c if (!lock->guard.done) lock 255 maint/gnulib/lib/windows-rwlock.c if (InterlockedIncrement (&lock->guard.started) == 0) lock 257 maint/gnulib/lib/windows-rwlock.c glwthread_rwlock_init (lock); lock 261 maint/gnulib/lib/windows-rwlock.c InterlockedDecrement (&lock->guard.started); lock 264 maint/gnulib/lib/windows-rwlock.c while (!lock->guard.done) lock 270 maint/gnulib/lib/windows-rwlock.c EnterCriticalSection (&lock->lock); lock 275 maint/gnulib/lib/windows-rwlock.c if (!(lock->runcount + 1 > 0 && lock->waiting_writers.count == 0)) lock 278 maint/gnulib/lib/windows-rwlock.c LeaveCriticalSection (&lock->lock); lock 281 maint/gnulib/lib/windows-rwlock.c lock->runcount++; lock 282 maint/gnulib/lib/windows-rwlock.c LeaveCriticalSection (&lock->lock); lock 287 maint/gnulib/lib/windows-rwlock.c glwthread_rwlock_trywrlock (glwthread_rwlock_t *lock) lock 289 maint/gnulib/lib/windows-rwlock.c if (!lock->guard.done) lock 291 maint/gnulib/lib/windows-rwlock.c if (InterlockedIncrement (&lock->guard.started) == 0) lock 293 maint/gnulib/lib/windows-rwlock.c glwthread_rwlock_init (lock); lock 297 maint/gnulib/lib/windows-rwlock.c InterlockedDecrement (&lock->guard.started); lock 300 maint/gnulib/lib/windows-rwlock.c while (!lock->guard.done) lock 306 maint/gnulib/lib/windows-rwlock.c EnterCriticalSection (&lock->lock); lock 308 maint/gnulib/lib/windows-rwlock.c if (!(lock->runcount == 0)) lock 311 maint/gnulib/lib/windows-rwlock.c LeaveCriticalSection (&lock->lock); lock 314 maint/gnulib/lib/windows-rwlock.c lock->runcount--; /* runcount becomes -1 */ lock 315 maint/gnulib/lib/windows-rwlock.c LeaveCriticalSection (&lock->lock); lock 320 maint/gnulib/lib/windows-rwlock.c glwthread_rwlock_unlock (glwthread_rwlock_t *lock) lock 322 maint/gnulib/lib/windows-rwlock.c if (!lock->guard.done) lock 324 maint/gnulib/lib/windows-rwlock.c EnterCriticalSection (&lock->lock); lock 325 maint/gnulib/lib/windows-rwlock.c if (lock->runcount < 0) lock 328 maint/gnulib/lib/windows-rwlock.c if (!(lock->runcount == -1)) lock 330 maint/gnulib/lib/windows-rwlock.c lock->runcount = 0; lock 335 maint/gnulib/lib/windows-rwlock.c if (!(lock->runcount > 0)) lock 337 maint/gnulib/lib/windows-rwlock.c LeaveCriticalSection (&lock->lock); lock 340 maint/gnulib/lib/windows-rwlock.c lock->runcount--; lock 342 maint/gnulib/lib/windows-rwlock.c if (lock->runcount == 0) lock 346 maint/gnulib/lib/windows-rwlock.c if (lock->waiting_writers.count > 0) lock 349 maint/gnulib/lib/windows-rwlock.c lock->runcount--; lock 350 maint/gnulib/lib/windows-rwlock.c glwthread_waitqueue_notify_first (&lock->waiting_writers); lock 355 maint/gnulib/lib/windows-rwlock.c lock->runcount += lock->waiting_readers.count; lock 356 maint/gnulib/lib/windows-rwlock.c glwthread_waitqueue_notify_all (&lock->waiting_readers); lock 359 maint/gnulib/lib/windows-rwlock.c LeaveCriticalSection (&lock->lock); lock 364 maint/gnulib/lib/windows-rwlock.c glwthread_rwlock_destroy (glwthread_rwlock_t *lock) lock 366 maint/gnulib/lib/windows-rwlock.c if (!lock->guard.done) lock 368 maint/gnulib/lib/windows-rwlock.c if (lock->runcount != 0) lock 370 maint/gnulib/lib/windows-rwlock.c DeleteCriticalSection (&lock->lock); lock 371 maint/gnulib/lib/windows-rwlock.c if (lock->waiting_readers.array != NULL) lock 372 maint/gnulib/lib/windows-rwlock.c free (lock->waiting_readers.array); lock 373 maint/gnulib/lib/windows-rwlock.c if (lock->waiting_writers.array != NULL) lock 374 maint/gnulib/lib/windows-rwlock.c free (lock->waiting_writers.array); lock 375 maint/gnulib/lib/windows-rwlock.c lock->guard.done = 0; lock 43 maint/gnulib/lib/windows-rwlock.h CRITICAL_SECTION lock; /* protects the remaining fields */ lock 56 maint/gnulib/lib/windows-rwlock.h extern void glwthread_rwlock_init (glwthread_rwlock_t *lock); lock 57 maint/gnulib/lib/windows-rwlock.h extern int glwthread_rwlock_rdlock (glwthread_rwlock_t *lock); lock 58 maint/gnulib/lib/windows-rwlock.h extern int glwthread_rwlock_wrlock (glwthread_rwlock_t *lock); lock 59 maint/gnulib/lib/windows-rwlock.h extern int glwthread_rwlock_tryrdlock (glwthread_rwlock_t *lock); lock 60 maint/gnulib/lib/windows-rwlock.h extern int glwthread_rwlock_trywrlock (glwthread_rwlock_t *lock); lock 61 maint/gnulib/lib/windows-rwlock.h extern int glwthread_rwlock_unlock (glwthread_rwlock_t *lock); lock 62 maint/gnulib/lib/windows-rwlock.h extern int glwthread_rwlock_destroy (glwthread_rwlock_t *lock); lock 27 maint/gnulib/lib/windows-spin.c glwthread_spin_init (glwthread_spinlock_t *lock) lock 29 maint/gnulib/lib/windows-spin.c lock->word = 0; lock 34 maint/gnulib/lib/windows-spin.c glwthread_spin_lock (glwthread_spinlock_t *lock) lock 39 maint/gnulib/lib/windows-spin.c while (InterlockedCompareExchange (&lock->word, 1, 0)) lock 45 maint/gnulib/lib/windows-spin.c glwthread_spin_trylock (glwthread_spinlock_t *lock) lock 50 maint/gnulib/lib/windows-spin.c if (InterlockedCompareExchange (&lock->word, 1, 0)) lock 56 maint/gnulib/lib/windows-spin.c glwthread_spin_unlock (glwthread_spinlock_t *lock) lock 61 maint/gnulib/lib/windows-spin.c if (!InterlockedCompareExchange (&lock->word, 0, 1)) lock 67 maint/gnulib/lib/windows-spin.c glwthread_spin_destroy (glwthread_spinlock_t *lock) lock 37 maint/gnulib/lib/windows-spin.h extern void glwthread_spin_init (glwthread_spinlock_t *lock); lock 38 maint/gnulib/lib/windows-spin.h extern int glwthread_spin_lock (glwthread_spinlock_t *lock); lock 39 maint/gnulib/lib/windows-spin.h extern int glwthread_spin_trylock (glwthread_spinlock_t *lock); lock 40 maint/gnulib/lib/windows-spin.h extern int glwthread_spin_unlock (glwthread_spinlock_t *lock); lock 41 maint/gnulib/lib/windows-spin.h extern int glwthread_spin_destroy (glwthread_spinlock_t *lock); lock 43 maint/gnulib/lib/windows-timedmutex.c InitializeCriticalSection (&mutex->lock); lock 75 maint/gnulib/lib/windows-timedmutex.c EnterCriticalSection (&mutex->lock); lock 105 maint/gnulib/lib/windows-timedmutex.c if (!TryEnterCriticalSection (&mutex->lock)) lock 147 maint/gnulib/lib/windows-timedmutex.c if (TryEnterCriticalSection (&mutex->lock)) lock 208 maint/gnulib/lib/windows-timedmutex.c LeaveCriticalSection (&mutex->lock); lock 221 maint/gnulib/lib/windows-timedmutex.c DeleteCriticalSection (&mutex->lock); lock 34 maint/gnulib/lib/windows-timedmutex.h CRITICAL_SECTION lock; lock 45 maint/gnulib/lib/windows-timedrecmutex.c InitializeCriticalSection (&mutex->lock); lock 81 maint/gnulib/lib/windows-timedrecmutex.c EnterCriticalSection (&mutex->lock); lock 123 maint/gnulib/lib/windows-timedrecmutex.c if (!TryEnterCriticalSection (&mutex->lock)) lock 177 maint/gnulib/lib/windows-timedrecmutex.c if (TryEnterCriticalSection (&mutex->lock)) lock 251 maint/gnulib/lib/windows-timedrecmutex.c LeaveCriticalSection (&mutex->lock); lock 265 maint/gnulib/lib/windows-timedrecmutex.c DeleteCriticalSection (&mutex->lock); lock 40 maint/gnulib/lib/windows-timedrecmutex.h CRITICAL_SECTION lock; lock 172 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_init (glwthread_timedrwlock_t *lock) lock 174 maint/gnulib/lib/windows-timedrwlock.c InitializeCriticalSection (&lock->lock); lock 175 maint/gnulib/lib/windows-timedrwlock.c glwthread_waitqueue_init (&lock->waiting_readers); lock 176 maint/gnulib/lib/windows-timedrwlock.c glwthread_waitqueue_init (&lock->waiting_writers); lock 177 maint/gnulib/lib/windows-timedrwlock.c lock->runcount = 0; lock 178 maint/gnulib/lib/windows-timedrwlock.c lock->guard.done = 1; lock 182 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_rdlock (glwthread_timedrwlock_t *lock) lock 184 maint/gnulib/lib/windows-timedrwlock.c if (!lock->guard.done) lock 186 maint/gnulib/lib/windows-timedrwlock.c if (InterlockedIncrement (&lock->guard.started) == 0) lock 188 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_init (lock); lock 192 maint/gnulib/lib/windows-timedrwlock.c InterlockedDecrement (&lock->guard.started); lock 195 maint/gnulib/lib/windows-timedrwlock.c while (!lock->guard.done) lock 199 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 204 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount + 1 > 0 && lock->waiting_writers.count == 0)) lock 209 maint/gnulib/lib/windows-timedrwlock.c glwthread_waitqueue_add (&lock->waiting_readers); lock 214 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 223 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount > 0)) lock 232 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 234 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 236 maint/gnulib/lib/windows-timedrwlock.c while (!(lock->runcount + 1 > 0)); lock 239 maint/gnulib/lib/windows-timedrwlock.c lock->runcount++; lock 240 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 245 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_wrlock (glwthread_timedrwlock_t *lock) lock 247 maint/gnulib/lib/windows-timedrwlock.c if (!lock->guard.done) lock 249 maint/gnulib/lib/windows-timedrwlock.c if (InterlockedIncrement (&lock->guard.started) == 0) lock 251 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_init (lock); lock 255 maint/gnulib/lib/windows-timedrwlock.c InterlockedDecrement (&lock->guard.started); lock 258 maint/gnulib/lib/windows-timedrwlock.c while (!lock->guard.done) lock 262 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 264 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount == 0)) lock 269 maint/gnulib/lib/windows-timedrwlock.c glwthread_waitqueue_add (&lock->waiting_writers); lock 274 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 283 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount == -1)) lock 292 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 294 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 296 maint/gnulib/lib/windows-timedrwlock.c while (!(lock->runcount == 0)); lock 299 maint/gnulib/lib/windows-timedrwlock.c lock->runcount--; /* runcount becomes -1 */ lock 300 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 305 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_tryrdlock (glwthread_timedrwlock_t *lock) lock 307 maint/gnulib/lib/windows-timedrwlock.c if (!lock->guard.done) lock 309 maint/gnulib/lib/windows-timedrwlock.c if (InterlockedIncrement (&lock->guard.started) == 0) lock 311 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_init (lock); lock 315 maint/gnulib/lib/windows-timedrwlock.c InterlockedDecrement (&lock->guard.started); lock 318 maint/gnulib/lib/windows-timedrwlock.c while (!lock->guard.done) lock 324 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 329 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount + 1 > 0 && lock->waiting_writers.count == 0)) lock 332 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 335 maint/gnulib/lib/windows-timedrwlock.c lock->runcount++; lock 336 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 341 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_trywrlock (glwthread_timedrwlock_t *lock) lock 343 maint/gnulib/lib/windows-timedrwlock.c if (!lock->guard.done) lock 345 maint/gnulib/lib/windows-timedrwlock.c if (InterlockedIncrement (&lock->guard.started) == 0) lock 347 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_init (lock); lock 351 maint/gnulib/lib/windows-timedrwlock.c InterlockedDecrement (&lock->guard.started); lock 354 maint/gnulib/lib/windows-timedrwlock.c while (!lock->guard.done) lock 360 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 362 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount == 0)) lock 365 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 368 maint/gnulib/lib/windows-timedrwlock.c lock->runcount--; /* runcount becomes -1 */ lock 369 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 374 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_timedrdlock (glwthread_timedrwlock_t *lock, lock 377 maint/gnulib/lib/windows-timedrwlock.c if (!lock->guard.done) lock 379 maint/gnulib/lib/windows-timedrwlock.c if (InterlockedIncrement (&lock->guard.started) == 0) lock 381 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_init (lock); lock 385 maint/gnulib/lib/windows-timedrwlock.c InterlockedDecrement (&lock->guard.started); lock 388 maint/gnulib/lib/windows-timedrwlock.c while (!lock->guard.done) lock 392 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 397 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount + 1 > 0 && lock->waiting_writers.count == 0)) lock 402 maint/gnulib/lib/windows-timedrwlock.c glwthread_waitqueue_add (&lock->waiting_readers); lock 411 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 458 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount > 0)) lock 463 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 465 maint/gnulib/lib/windows-timedrwlock.c if (glwthread_waitqueue_remove (&lock->waiting_readers, elt)) lock 470 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 475 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount > 0)) lock 484 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 486 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 488 maint/gnulib/lib/windows-timedrwlock.c while (!(lock->runcount + 1 > 0)); lock 491 maint/gnulib/lib/windows-timedrwlock.c lock->runcount++; lock 492 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 497 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_timedwrlock (glwthread_timedrwlock_t *lock, lock 500 maint/gnulib/lib/windows-timedrwlock.c if (!lock->guard.done) lock 502 maint/gnulib/lib/windows-timedrwlock.c if (InterlockedIncrement (&lock->guard.started) == 0) lock 504 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_init (lock); lock 508 maint/gnulib/lib/windows-timedrwlock.c InterlockedDecrement (&lock->guard.started); lock 511 maint/gnulib/lib/windows-timedrwlock.c while (!lock->guard.done) lock 515 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 517 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount == 0)) lock 522 maint/gnulib/lib/windows-timedrwlock.c glwthread_waitqueue_add (&lock->waiting_writers); lock 531 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 578 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount == -1)) lock 583 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 585 maint/gnulib/lib/windows-timedrwlock.c if (glwthread_waitqueue_remove (&lock->waiting_writers, elt)) lock 590 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 595 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount == -1)) lock 604 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 606 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 608 maint/gnulib/lib/windows-timedrwlock.c while (!(lock->runcount == 0)); lock 611 maint/gnulib/lib/windows-timedrwlock.c lock->runcount--; /* runcount becomes -1 */ lock 612 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 617 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_unlock (glwthread_timedrwlock_t *lock) lock 619 maint/gnulib/lib/windows-timedrwlock.c if (!lock->guard.done) lock 621 maint/gnulib/lib/windows-timedrwlock.c EnterCriticalSection (&lock->lock); lock 622 maint/gnulib/lib/windows-timedrwlock.c if (lock->runcount < 0) lock 625 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount == -1)) lock 627 maint/gnulib/lib/windows-timedrwlock.c lock->runcount = 0; lock 632 maint/gnulib/lib/windows-timedrwlock.c if (!(lock->runcount > 0)) lock 634 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 637 maint/gnulib/lib/windows-timedrwlock.c lock->runcount--; lock 639 maint/gnulib/lib/windows-timedrwlock.c if (lock->runcount == 0) lock 643 maint/gnulib/lib/windows-timedrwlock.c if (lock->waiting_writers.count > 0) lock 646 maint/gnulib/lib/windows-timedrwlock.c lock->runcount--; lock 647 maint/gnulib/lib/windows-timedrwlock.c glwthread_waitqueue_notify_first (&lock->waiting_writers); lock 652 maint/gnulib/lib/windows-timedrwlock.c lock->runcount += lock->waiting_readers.count; lock 653 maint/gnulib/lib/windows-timedrwlock.c glwthread_waitqueue_notify_all (&lock->waiting_readers); lock 656 maint/gnulib/lib/windows-timedrwlock.c LeaveCriticalSection (&lock->lock); lock 661 maint/gnulib/lib/windows-timedrwlock.c glwthread_timedrwlock_destroy (glwthread_timedrwlock_t *lock) lock 663 maint/gnulib/lib/windows-timedrwlock.c if (!lock->guard.done) lock 665 maint/gnulib/lib/windows-timedrwlock.c if (lock->runcount != 0) lock 667 maint/gnulib/lib/windows-timedrwlock.c DeleteCriticalSection (&lock->lock); lock 668 maint/gnulib/lib/windows-timedrwlock.c lock->guard.done = 0; lock 47 maint/gnulib/lib/windows-timedrwlock.h CRITICAL_SECTION lock; /* protects the remaining fields */ lock 60 maint/gnulib/lib/windows-timedrwlock.h extern void glwthread_timedrwlock_init (glwthread_timedrwlock_t *lock); lock 61 maint/gnulib/lib/windows-timedrwlock.h extern int glwthread_timedrwlock_rdlock (glwthread_timedrwlock_t *lock); lock 62 maint/gnulib/lib/windows-timedrwlock.h extern int glwthread_timedrwlock_wrlock (glwthread_timedrwlock_t *lock); lock 63 maint/gnulib/lib/windows-timedrwlock.h extern int glwthread_timedrwlock_tryrdlock (glwthread_timedrwlock_t *lock); lock 64 maint/gnulib/lib/windows-timedrwlock.h extern int glwthread_timedrwlock_trywrlock (glwthread_timedrwlock_t *lock); lock 65 maint/gnulib/lib/windows-timedrwlock.h extern int glwthread_timedrwlock_timedrdlock (glwthread_timedrwlock_t *lock, lock 67 maint/gnulib/lib/windows-timedrwlock.h extern int glwthread_timedrwlock_timedwrlock (glwthread_timedrwlock_t *lock, lock 69 maint/gnulib/lib/windows-timedrwlock.h extern int glwthread_timedrwlock_unlock (glwthread_timedrwlock_t *lock); lock 70 maint/gnulib/lib/windows-timedrwlock.h extern int glwthread_timedrwlock_destroy (glwthread_timedrwlock_t *lock); lock 150 maint/gnulib/tests/atomic-int-gnulib.h gl_lock_define (, lock) lock 156 maint/gnulib/tests/atomic-int-gnulib.h gl_lock_init (ai->lock); lock 161 maint/gnulib/tests/atomic-int-gnulib.h gl_lock_lock (ai->lock); lock 163 maint/gnulib/tests/atomic-int-gnulib.h gl_lock_unlock (ai->lock); lock 169 maint/gnulib/tests/atomic-int-gnulib.h gl_lock_lock (ai->lock); lock 171 maint/gnulib/tests/atomic-int-gnulib.h gl_lock_unlock (ai->lock); lock 150 maint/gnulib/tests/atomic-int-isoc.h mtx_t lock; lock 156 maint/gnulib/tests/atomic-int-isoc.h ASSERT (mtx_init (&ai->lock, mtx_plain) == thrd_success); lock 161 maint/gnulib/tests/atomic-int-isoc.h ASSERT (mtx_lock (&ai->lock) == thrd_success); lock 163 maint/gnulib/tests/atomic-int-isoc.h ASSERT (mtx_unlock (&ai->lock) == thrd_success); lock 169 maint/gnulib/tests/atomic-int-isoc.h ASSERT (mtx_lock (&ai->lock) == thrd_success); lock 171 maint/gnulib/tests/atomic-int-isoc.h ASSERT (mtx_unlock (&ai->lock) == thrd_success); lock 150 maint/gnulib/tests/atomic-int-posix.h pthread_mutex_t lock; lock 160 maint/gnulib/tests/atomic-int-posix.h ASSERT (pthread_mutex_init (&ai->lock, &attr) == 0); lock 166 maint/gnulib/tests/atomic-int-posix.h ASSERT (pthread_mutex_lock (&ai->lock) == 0); lock 168 maint/gnulib/tests/atomic-int-posix.h ASSERT (pthread_mutex_unlock (&ai->lock) == 0); lock 174 maint/gnulib/tests/atomic-int-posix.h ASSERT (pthread_mutex_lock (&ai->lock) == 0); lock 176 maint/gnulib/tests/atomic-int-posix.h ASSERT (pthread_mutex_unlock (&ai->lock) == 0); lock 58 maint/gnulib/tests/test-asyncsafe-spin2.c # define asyncsafe_spin_init(lock) (void)(lock) lock 59 maint/gnulib/tests/test-asyncsafe-spin2.c # define asyncsafe_spin_lock(lock, mask, saved_mask) \ lock 60 maint/gnulib/tests/test-asyncsafe-spin2.c ((void)(lock), (void)(mask), (void)(saved_mask)) lock 61 maint/gnulib/tests/test-asyncsafe-spin2.c # define asyncsafe_spin_unlock(lock, saved_mask) \ lock 62 maint/gnulib/tests/test-asyncsafe-spin2.c ((void)(lock), (void)(saved_mask)) lock 63 maint/gnulib/tests/test-asyncsafe-spin2.c # define asyncsafe_spin_destroy(lock) (void)(lock) lock 64 maint/gnulib/tests/test-rwlock1.c static gl_rwlock_t lock; lock 108 maint/gnulib/tests/test-rwlock1.c err = glthread_rwlock_rdlock (&lock); lock 129 maint/gnulib/tests/test-rwlock1.c if (glthread_rwlock_wrlock (&lock)) lock 140 maint/gnulib/tests/test-rwlock1.c if (glthread_rwlock_init (&lock)) lock 145 maint/gnulib/tests/test-rwlock1.c if (glthread_rwlock_rdlock (&lock))