mutex 58 maint/gnulib/lib/cnd.c mutex_lock (mtx_t *mutex) mutex 60 maint/gnulib/lib/cnd.c switch (mutex->type) mutex 63 maint/gnulib/lib/cnd.c return glwthread_mutex_lock (&mutex->u.u_mutex); mutex 65 maint/gnulib/lib/cnd.c return glwthread_recmutex_lock (&mutex->u.u_recmutex); mutex 67 maint/gnulib/lib/cnd.c return glwthread_timedmutex_lock (&mutex->u.u_timedmutex); mutex 69 maint/gnulib/lib/cnd.c return glwthread_timedrecmutex_lock (&mutex->u.u_timedrecmutex); mutex 76 maint/gnulib/lib/cnd.c mutex_unlock (mtx_t *mutex) mutex 78 maint/gnulib/lib/cnd.c switch (mutex->type) mutex 81 maint/gnulib/lib/cnd.c return glwthread_mutex_unlock (&mutex->u.u_mutex); mutex 83 maint/gnulib/lib/cnd.c return glwthread_recmutex_unlock (&mutex->u.u_recmutex); mutex 85 maint/gnulib/lib/cnd.c return glwthread_timedmutex_unlock (&mutex->u.u_timedmutex); mutex 87 maint/gnulib/lib/cnd.c return glwthread_timedrecmutex_unlock (&mutex->u.u_timedrecmutex); mutex 94 maint/gnulib/lib/cnd.c cnd_wait (cnd_t *cond, mtx_t *mutex) mutex 96 maint/gnulib/lib/cnd.c int err = glwthread_cond_wait (cond, mutex, mutex 103 maint/gnulib/lib/cnd.c cnd_timedwait (cnd_t *cond, mtx_t *mutex, const struct timespec *abstime) mutex 105 maint/gnulib/lib/cnd.c int err = glwthread_cond_timedwait (cond, mutex, mutex 149 maint/gnulib/lib/cnd.c cnd_wait (cnd_t *cond, mtx_t *mutex) mutex 151 maint/gnulib/lib/cnd.c int err = pthread_cond_wait (cond, mutex); mutex 156 maint/gnulib/lib/cnd.c cnd_timedwait (cnd_t *cond, mtx_t *mutex, const struct timespec *abstime) mutex 158 maint/gnulib/lib/cnd.c int err = pthread_cond_timedwait (cond, mutex, abstime); mutex 45 maint/gnulib/lib/glthread/cond.c if (cnd_wait (&condition->condition, &lock->mutex) != thrd_success) mutex 58 maint/gnulib/lib/glthread/cond.c switch (cnd_timedwait (&condition->condition, &lock->mutex, abstime)) mutex 33 maint/gnulib/lib/glthread/lock.c if (mtx_init (&lock->mutex, mtx_plain) != thrd_success) mutex 44 maint/gnulib/lib/glthread/lock.c if (mtx_lock (&lock->mutex) != thrd_success) mutex 54 maint/gnulib/lib/glthread/lock.c if (mtx_unlock (&lock->mutex) != thrd_success) mutex 64 maint/gnulib/lib/glthread/lock.c mtx_destroy (&lock->mutex); mutex 208 maint/gnulib/lib/glthread/lock.c if (mtx_init (&lock->mutex, mtx_plain | mtx_recursive) != thrd_success) mutex 219 maint/gnulib/lib/glthread/lock.c if (mtx_lock (&lock->mutex) != thrd_success) mutex 229 maint/gnulib/lib/glthread/lock.c if (mtx_unlock (&lock->mutex) != thrd_success) mutex 239 maint/gnulib/lib/glthread/lock.c mtx_destroy (&lock->mutex); mutex 646 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_init (&lock->mutex, NULL); mutex 662 maint/gnulib/lib/glthread/lock.c err = pthread_mutex_lock (&lock->mutex); mutex 685 maint/gnulib/lib/glthread/lock.c return pthread_mutex_unlock (&lock->mutex); mutex 696 maint/gnulib/lib/glthread/lock.c return pthread_mutex_destroy (&lock->mutex); mutex 114 maint/gnulib/lib/glthread/lock.h mtx_t mutex; mutex 171 maint/gnulib/lib/glthread/lock.h mtx_t mutex; mutex 479 maint/gnulib/lib/glthread/lock.h pthread_mutex_t mutex; mutex 96 maint/gnulib/lib/mbtowc-lock.c static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; mutex 105 maint/gnulib/lib/mbtowc-lock.c return &mutex; mutex 115 maint/gnulib/lib/mbtowc-lock.c static mtx_t mutex; mutex 120 maint/gnulib/lib/mbtowc-lock.c if (mtx_init (&mutex, mtx_plain) != thrd_success) mutex 134 maint/gnulib/lib/mbtowc-lock.c return &mutex; mutex 45 maint/gnulib/lib/mtx.c mtx_init (mtx_t *mutex, int type) mutex 50 maint/gnulib/lib/mtx.c glwthread_mutex_init (&mutex->u.u_mutex); mutex 53 maint/gnulib/lib/mtx.c glwthread_recmutex_init (&mutex->u.u_recmutex); mutex 56 maint/gnulib/lib/mtx.c if (glwthread_timedmutex_init (&mutex->u.u_timedmutex) != 0) mutex 60 maint/gnulib/lib/mtx.c if (glwthread_timedrecmutex_init (&mutex->u.u_timedrecmutex) != 0) mutex 66 maint/gnulib/lib/mtx.c mutex->type = type; mutex 71 maint/gnulib/lib/mtx.c mtx_lock (mtx_t *mutex) mutex 75 maint/gnulib/lib/mtx.c switch (mutex->type) mutex 78 maint/gnulib/lib/mtx.c err = glwthread_mutex_lock (&mutex->u.u_mutex); mutex 81 maint/gnulib/lib/mtx.c err = glwthread_recmutex_lock (&mutex->u.u_recmutex); mutex 84 maint/gnulib/lib/mtx.c err = glwthread_timedmutex_lock (&mutex->u.u_timedmutex); mutex 87 maint/gnulib/lib/mtx.c err = glwthread_timedrecmutex_lock (&mutex->u.u_timedrecmutex); mutex 96 maint/gnulib/lib/mtx.c mtx_trylock (mtx_t *mutex) mutex 100 maint/gnulib/lib/mtx.c switch (mutex->type) mutex 103 maint/gnulib/lib/mtx.c err = glwthread_mutex_trylock (&mutex->u.u_mutex); mutex 106 maint/gnulib/lib/mtx.c err = glwthread_recmutex_trylock (&mutex->u.u_recmutex); mutex 109 maint/gnulib/lib/mtx.c err = glwthread_timedmutex_trylock (&mutex->u.u_timedmutex); mutex 112 maint/gnulib/lib/mtx.c err = glwthread_timedrecmutex_trylock (&mutex->u.u_timedrecmutex); mutex 121 maint/gnulib/lib/mtx.c mtx_timedlock (mtx_t *mutex, const struct timespec *abstime) mutex 125 maint/gnulib/lib/mtx.c switch (mutex->type) mutex 131 maint/gnulib/lib/mtx.c err = glwthread_timedmutex_timedlock (&mutex->u.u_timedmutex, abstime); mutex 135 maint/gnulib/lib/mtx.c glwthread_timedrecmutex_timedlock (&mutex->u.u_timedrecmutex, abstime); mutex 144 maint/gnulib/lib/mtx.c mtx_unlock (mtx_t *mutex) mutex 148 maint/gnulib/lib/mtx.c switch (mutex->type) mutex 151 maint/gnulib/lib/mtx.c err = glwthread_mutex_unlock (&mutex->u.u_mutex); mutex 154 maint/gnulib/lib/mtx.c err = glwthread_recmutex_unlock (&mutex->u.u_recmutex); mutex 157 maint/gnulib/lib/mtx.c err = glwthread_timedmutex_unlock (&mutex->u.u_timedmutex); mutex 160 maint/gnulib/lib/mtx.c err = glwthread_timedrecmutex_unlock (&mutex->u.u_timedrecmutex); mutex 169 maint/gnulib/lib/mtx.c mtx_destroy (mtx_t *mutex) mutex 171 maint/gnulib/lib/mtx.c switch (mutex->type) mutex 174 maint/gnulib/lib/mtx.c glwthread_mutex_destroy (&mutex->u.u_mutex); mutex 177 maint/gnulib/lib/mtx.c glwthread_recmutex_destroy (&mutex->u.u_recmutex); mutex 180 maint/gnulib/lib/mtx.c glwthread_timedmutex_destroy (&mutex->u.u_timedmutex); mutex 183 maint/gnulib/lib/mtx.c glwthread_timedrecmutex_destroy (&mutex->u.u_timedrecmutex); mutex 200 maint/gnulib/lib/mtx.c mtx_init (mtx_t *mutex, int type) mutex 227 maint/gnulib/lib/mtx.c err = pthread_mutex_init (mutex, &attributes); mutex 239 maint/gnulib/lib/mtx.c int err = pthread_mutex_init (mutex, NULL); mutex 247 maint/gnulib/lib/mtx.c mtx_lock (mtx_t *mutex) mutex 249 maint/gnulib/lib/mtx.c int err = pthread_mutex_lock (mutex); mutex 254 maint/gnulib/lib/mtx.c mtx_trylock (mtx_t *mutex) mutex 256 maint/gnulib/lib/mtx.c int err = pthread_mutex_trylock (mutex); mutex 261 maint/gnulib/lib/mtx.c mtx_timedlock (mtx_t *mutex, const struct timespec *abstime) mutex 263 maint/gnulib/lib/mtx.c int err = pthread_mutex_timedlock (mutex, abstime); mutex 270 maint/gnulib/lib/mtx.c mtx_unlock (mtx_t *mutex) mutex 272 maint/gnulib/lib/mtx.c int err = pthread_mutex_unlock (mutex); mutex 277 maint/gnulib/lib/mtx.c mtx_destroy (mtx_t *mutex) mutex 279 maint/gnulib/lib/mtx.c pthread_mutex_destroy (mutex); mutex 96 maint/gnulib/lib/nl_langinfo-lock.c static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; mutex 105 maint/gnulib/lib/nl_langinfo-lock.c return &mutex; mutex 115 maint/gnulib/lib/nl_langinfo-lock.c static mtx_t mutex; mutex 120 maint/gnulib/lib/nl_langinfo-lock.c if (mtx_init (&mutex, mtx_plain) != thrd_success) mutex 134 maint/gnulib/lib/nl_langinfo-lock.c return &mutex; mutex 61 maint/gnulib/lib/pthread-cond.c pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex) mutex 63 maint/gnulib/lib/pthread-cond.c return glwthread_cond_wait (cond, mutex, mutex 69 maint/gnulib/lib/pthread-cond.c pthread_cond_timedwait (pthread_cond_t *cond, pthread_mutex_t *mutex, mutex 72 maint/gnulib/lib/pthread-cond.c return glwthread_cond_timedwait (cond, mutex, mutex 112 maint/gnulib/lib/pthread-cond.c _GL_UNUSED pthread_mutex_t *mutex) mutex 128 maint/gnulib/lib/pthread-cond.c _GL_UNUSED pthread_mutex_t *mutex, mutex 110 maint/gnulib/lib/pthread-mutex.c pthread_mutex_init (pthread_mutex_t *mutex, const pthread_mutexattr_t *attr) mutex 119 maint/gnulib/lib/pthread-mutex.c mutex->type = 2; mutex 120 maint/gnulib/lib/pthread-mutex.c return glwthread_timedrecmutex_init (&mutex->u.u_timedrecmutex); mutex 124 maint/gnulib/lib/pthread-mutex.c mutex->type = 1; mutex 125 maint/gnulib/lib/pthread-mutex.c return glwthread_timedmutex_init (&mutex->u.u_timedmutex); mutex 130 maint/gnulib/lib/pthread-mutex.c pthread_mutex_lock (pthread_mutex_t *mutex) mutex 132 maint/gnulib/lib/pthread-mutex.c switch (mutex->type) mutex 135 maint/gnulib/lib/pthread-mutex.c return glwthread_timedmutex_lock (&mutex->u.u_timedmutex); mutex 137 maint/gnulib/lib/pthread-mutex.c return glwthread_timedrecmutex_lock (&mutex->u.u_timedrecmutex); mutex 144 maint/gnulib/lib/pthread-mutex.c pthread_mutex_trylock (pthread_mutex_t *mutex) mutex 146 maint/gnulib/lib/pthread-mutex.c switch (mutex->type) mutex 149 maint/gnulib/lib/pthread-mutex.c return glwthread_timedmutex_trylock (&mutex->u.u_timedmutex); mutex 151 maint/gnulib/lib/pthread-mutex.c return glwthread_timedrecmutex_trylock (&mutex->u.u_timedrecmutex); mutex 158 maint/gnulib/lib/pthread-mutex.c pthread_mutex_timedlock (pthread_mutex_t *mutex, const struct timespec *abstime) mutex 160 maint/gnulib/lib/pthread-mutex.c switch (mutex->type) mutex 163 maint/gnulib/lib/pthread-mutex.c return glwthread_timedmutex_timedlock (&mutex->u.u_timedmutex, abstime); mutex 165 maint/gnulib/lib/pthread-mutex.c return glwthread_timedrecmutex_timedlock (&mutex->u.u_timedrecmutex, mutex 173 maint/gnulib/lib/pthread-mutex.c pthread_mutex_unlock (pthread_mutex_t *mutex) mutex 175 maint/gnulib/lib/pthread-mutex.c switch (mutex->type) mutex 178 maint/gnulib/lib/pthread-mutex.c return glwthread_timedmutex_unlock (&mutex->u.u_timedmutex); mutex 180 maint/gnulib/lib/pthread-mutex.c return glwthread_timedrecmutex_unlock (&mutex->u.u_timedrecmutex); mutex 187 maint/gnulib/lib/pthread-mutex.c pthread_mutex_destroy (pthread_mutex_t *mutex) mutex 189 maint/gnulib/lib/pthread-mutex.c switch (mutex->type) mutex 192 maint/gnulib/lib/pthread-mutex.c return glwthread_timedmutex_destroy (&mutex->u.u_timedmutex); mutex 194 maint/gnulib/lib/pthread-mutex.c return glwthread_timedrecmutex_destroy (&mutex->u.u_timedrecmutex); mutex 210 maint/gnulib/lib/pthread-mutex.c pthread_mutex_init (_GL_UNUSED pthread_mutex_t *mutex, mutex 218 maint/gnulib/lib/pthread-mutex.c pthread_mutex_lock (_GL_UNUSED pthread_mutex_t *mutex) mutex 226 maint/gnulib/lib/pthread-mutex.c pthread_mutex_trylock (_GL_UNUSED pthread_mutex_t *mutex) mutex 234 maint/gnulib/lib/pthread-mutex.c pthread_mutex_timedlock (_GL_UNUSED pthread_mutex_t *mutex, mutex 243 maint/gnulib/lib/pthread-mutex.c pthread_mutex_unlock (_GL_UNUSED pthread_mutex_t *mutex) mutex 252 maint/gnulib/lib/pthread-mutex.c pthread_mutex_destroy (_GL_UNUSED pthread_mutex_t *mutex) mutex 787 maint/gnulib/lib/pthread.in.h (pthread_mutex_t *restrict mutex, mutex 791 maint/gnulib/lib/pthread.in.h (pthread_mutex_t *restrict mutex, mutex 796 maint/gnulib/lib/pthread.in.h (pthread_mutex_t *restrict mutex, mutex 801 maint/gnulib/lib/pthread.in.h (pthread_mutex_t *restrict mutex, mutex 1009 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_mutex_lock, int, (pthread_mutex_t *mutex) mutex 1011 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_mutex_lock, int, (pthread_mutex_t *mutex)); mutex 1014 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_mutex_lock, int, (pthread_mutex_t *mutex) mutex 1017 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_mutex_lock, int, (pthread_mutex_t *mutex)); mutex 1036 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_mutex_trylock, int, (pthread_mutex_t *mutex) mutex 1038 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_mutex_trylock, int, (pthread_mutex_t *mutex)); mutex 1041 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_mutex_trylock, int, (pthread_mutex_t *mutex) mutex 1044 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_mutex_trylock, int, (pthread_mutex_t *mutex)); mutex 1064 maint/gnulib/lib/pthread.in.h (pthread_mutex_t *restrict mutex, mutex 1068 maint/gnulib/lib/pthread.in.h (pthread_mutex_t *restrict mutex, mutex 1073 maint/gnulib/lib/pthread.in.h (pthread_mutex_t *restrict mutex, mutex 1078 maint/gnulib/lib/pthread.in.h (pthread_mutex_t *restrict mutex, mutex 1098 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_mutex_unlock, int, (pthread_mutex_t *mutex) mutex 1100 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_mutex_unlock, int, (pthread_mutex_t *mutex)); mutex 1103 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_mutex_unlock, int, (pthread_mutex_t *mutex) mutex 1106 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_mutex_unlock, int, (pthread_mutex_t *mutex)); mutex 1125 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_RPL (pthread_mutex_destroy, int, (pthread_mutex_t *mutex) mutex 1127 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_RPL (pthread_mutex_destroy, int, (pthread_mutex_t *mutex)); mutex 1130 maint/gnulib/lib/pthread.in.h _GL_FUNCDECL_SYS (pthread_mutex_destroy, int, (pthread_mutex_t *mutex) mutex 1133 maint/gnulib/lib/pthread.in.h _GL_CXXALIAS_SYS (pthread_mutex_destroy, int, (pthread_mutex_t *mutex)); mutex 1570 maint/gnulib/lib/pthread.in.h pthread_mutex_t *restrict mutex) mutex 1574 maint/gnulib/lib/pthread.in.h pthread_mutex_t *restrict mutex)); mutex 1579 maint/gnulib/lib/pthread.in.h pthread_mutex_t *restrict mutex) mutex 1584 maint/gnulib/lib/pthread.in.h pthread_mutex_t *restrict mutex)); mutex 1605 maint/gnulib/lib/pthread.in.h pthread_mutex_t *restrict mutex, mutex 1610 maint/gnulib/lib/pthread.in.h pthread_mutex_t *restrict mutex, mutex 1616 maint/gnulib/lib/pthread.in.h pthread_mutex_t *restrict mutex, mutex 1622 maint/gnulib/lib/pthread.in.h pthread_mutex_t *restrict mutex, mutex 28 maint/gnulib/lib/pthread_mutex_timedlock.c pthread_mutex_timedlock (pthread_mutex_t *mutex, const struct timespec *abstime) mutex 44 maint/gnulib/lib/pthread_mutex_timedlock.c err = pthread_mutex_trylock (mutex); mutex 96 maint/gnulib/lib/setlocale-lock.c static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; mutex 105 maint/gnulib/lib/setlocale-lock.c return &mutex; mutex 115 maint/gnulib/lib/setlocale-lock.c static mtx_t mutex; mutex 120 maint/gnulib/lib/setlocale-lock.c if (mtx_init (&mutex, mtx_plain) != thrd_success) mutex 134 maint/gnulib/lib/setlocale-lock.c return &mutex; mutex 178 maint/gnulib/lib/windows-cond.c void *mutex, int (*mutex_lock) (void *), int (*mutex_unlock) (void *)) mutex 214 maint/gnulib/lib/windows-cond.c err = mutex_unlock (mutex); mutex 240 maint/gnulib/lib/windows-cond.c return mutex_lock (mutex); mutex 247 maint/gnulib/lib/windows-cond.c void *mutex, int (*mutex_lock) (void *), int (*mutex_unlock) (void *), mutex 294 maint/gnulib/lib/windows-cond.c err = mutex_unlock (mutex); mutex 375 maint/gnulib/lib/windows-cond.c err = mutex_lock (mutex); mutex 63 maint/gnulib/lib/windows-cond.h void *mutex, mutex 67 maint/gnulib/lib/windows-cond.h void *mutex, mutex 28 maint/gnulib/lib/windows-mutex.c glwthread_mutex_init (glwthread_mutex_t *mutex) mutex 30 maint/gnulib/lib/windows-mutex.c InitializeCriticalSection (&mutex->lock); mutex 31 maint/gnulib/lib/windows-mutex.c mutex->guard.done = 1; mutex 35 maint/gnulib/lib/windows-mutex.c glwthread_mutex_lock (glwthread_mutex_t *mutex) mutex 37 maint/gnulib/lib/windows-mutex.c if (!mutex->guard.done) mutex 39 maint/gnulib/lib/windows-mutex.c if (InterlockedIncrement (&mutex->guard.started) == 0) mutex 41 maint/gnulib/lib/windows-mutex.c glwthread_mutex_init (mutex); mutex 45 maint/gnulib/lib/windows-mutex.c InterlockedDecrement (&mutex->guard.started); mutex 48 maint/gnulib/lib/windows-mutex.c while (!mutex->guard.done) mutex 52 maint/gnulib/lib/windows-mutex.c EnterCriticalSection (&mutex->lock); mutex 57 maint/gnulib/lib/windows-mutex.c glwthread_mutex_trylock (glwthread_mutex_t *mutex) mutex 59 maint/gnulib/lib/windows-mutex.c if (!mutex->guard.done) mutex 61 maint/gnulib/lib/windows-mutex.c if (InterlockedIncrement (&mutex->guard.started) == 0) mutex 63 maint/gnulib/lib/windows-mutex.c glwthread_mutex_init (mutex); mutex 67 maint/gnulib/lib/windows-mutex.c InterlockedDecrement (&mutex->guard.started); mutex 73 maint/gnulib/lib/windows-mutex.c if (!TryEnterCriticalSection (&mutex->lock)) mutex 79 maint/gnulib/lib/windows-mutex.c glwthread_mutex_unlock (glwthread_mutex_t *mutex) mutex 81 maint/gnulib/lib/windows-mutex.c if (!mutex->guard.done) mutex 83 maint/gnulib/lib/windows-mutex.c LeaveCriticalSection (&mutex->lock); mutex 88 maint/gnulib/lib/windows-mutex.c glwthread_mutex_destroy (glwthread_mutex_t *mutex) mutex 90 maint/gnulib/lib/windows-mutex.c if (!mutex->guard.done) mutex 92 maint/gnulib/lib/windows-mutex.c DeleteCriticalSection (&mutex->lock); mutex 93 maint/gnulib/lib/windows-mutex.c mutex->guard.done = 0; mutex 41 maint/gnulib/lib/windows-mutex.h extern void glwthread_mutex_init (glwthread_mutex_t *mutex); mutex 42 maint/gnulib/lib/windows-mutex.h extern int glwthread_mutex_lock (glwthread_mutex_t *mutex); mutex 43 maint/gnulib/lib/windows-mutex.h extern int glwthread_mutex_trylock (glwthread_mutex_t *mutex); mutex 44 maint/gnulib/lib/windows-mutex.h extern int glwthread_mutex_unlock (glwthread_mutex_t *mutex); mutex 45 maint/gnulib/lib/windows-mutex.h extern int glwthread_mutex_destroy (glwthread_mutex_t *mutex); mutex 28 maint/gnulib/lib/windows-recmutex.c glwthread_recmutex_init (glwthread_recmutex_t *mutex) mutex 30 maint/gnulib/lib/windows-recmutex.c mutex->owner = 0; mutex 31 maint/gnulib/lib/windows-recmutex.c mutex->depth = 0; mutex 32 maint/gnulib/lib/windows-recmutex.c InitializeCriticalSection (&mutex->lock); mutex 33 maint/gnulib/lib/windows-recmutex.c mutex->guard.done = 1; mutex 37 maint/gnulib/lib/windows-recmutex.c glwthread_recmutex_lock (glwthread_recmutex_t *mutex) mutex 39 maint/gnulib/lib/windows-recmutex.c if (!mutex->guard.done) mutex 41 maint/gnulib/lib/windows-recmutex.c if (InterlockedIncrement (&mutex->guard.started) == 0) mutex 43 maint/gnulib/lib/windows-recmutex.c glwthread_recmutex_init (mutex); mutex 47 maint/gnulib/lib/windows-recmutex.c InterlockedDecrement (&mutex->guard.started); mutex 50 maint/gnulib/lib/windows-recmutex.c while (!mutex->guard.done) mutex 56 maint/gnulib/lib/windows-recmutex.c if (mutex->owner != self) mutex 58 maint/gnulib/lib/windows-recmutex.c EnterCriticalSection (&mutex->lock); mutex 59 maint/gnulib/lib/windows-recmutex.c mutex->owner = self; mutex 61 maint/gnulib/lib/windows-recmutex.c if (++(mutex->depth) == 0) /* wraparound? */ mutex 63 maint/gnulib/lib/windows-recmutex.c mutex->depth--; mutex 71 maint/gnulib/lib/windows-recmutex.c glwthread_recmutex_trylock (glwthread_recmutex_t *mutex) mutex 73 maint/gnulib/lib/windows-recmutex.c if (!mutex->guard.done) mutex 75 maint/gnulib/lib/windows-recmutex.c if (InterlockedIncrement (&mutex->guard.started) == 0) mutex 77 maint/gnulib/lib/windows-recmutex.c glwthread_recmutex_init (mutex); mutex 81 maint/gnulib/lib/windows-recmutex.c InterlockedDecrement (&mutex->guard.started); mutex 89 maint/gnulib/lib/windows-recmutex.c if (mutex->owner != self) mutex 91 maint/gnulib/lib/windows-recmutex.c if (!TryEnterCriticalSection (&mutex->lock)) mutex 93 maint/gnulib/lib/windows-recmutex.c mutex->owner = self; mutex 95 maint/gnulib/lib/windows-recmutex.c if (++(mutex->depth) == 0) /* wraparound? */ mutex 97 maint/gnulib/lib/windows-recmutex.c mutex->depth--; mutex 105 maint/gnulib/lib/windows-recmutex.c glwthread_recmutex_unlock (glwthread_recmutex_t *mutex) mutex 107 maint/gnulib/lib/windows-recmutex.c if (mutex->owner != GetCurrentThreadId ()) mutex 109 maint/gnulib/lib/windows-recmutex.c if (mutex->depth == 0) mutex 111 maint/gnulib/lib/windows-recmutex.c if (--(mutex->depth) == 0) mutex 113 maint/gnulib/lib/windows-recmutex.c mutex->owner = 0; mutex 114 maint/gnulib/lib/windows-recmutex.c LeaveCriticalSection (&mutex->lock); mutex 120 maint/gnulib/lib/windows-recmutex.c glwthread_recmutex_destroy (glwthread_recmutex_t *mutex) mutex 122 maint/gnulib/lib/windows-recmutex.c if (mutex->owner != 0) mutex 124 maint/gnulib/lib/windows-recmutex.c DeleteCriticalSection (&mutex->lock); mutex 125 maint/gnulib/lib/windows-recmutex.c mutex->guard.done = 0; mutex 47 maint/gnulib/lib/windows-recmutex.h extern void glwthread_recmutex_init (glwthread_recmutex_t *mutex); mutex 48 maint/gnulib/lib/windows-recmutex.h extern int glwthread_recmutex_lock (glwthread_recmutex_t *mutex); mutex 49 maint/gnulib/lib/windows-recmutex.h extern int glwthread_recmutex_trylock (glwthread_recmutex_t *mutex); mutex 50 maint/gnulib/lib/windows-recmutex.h extern int glwthread_recmutex_unlock (glwthread_recmutex_t *mutex); mutex 51 maint/gnulib/lib/windows-recmutex.h extern int glwthread_recmutex_destroy (glwthread_recmutex_t *mutex); mutex 34 maint/gnulib/lib/windows-timedmutex.c glwthread_timedmutex_init (glwthread_timedmutex_t *mutex) mutex 42 maint/gnulib/lib/windows-timedmutex.c mutex->event = event; mutex 43 maint/gnulib/lib/windows-timedmutex.c InitializeCriticalSection (&mutex->lock); mutex 44 maint/gnulib/lib/windows-timedmutex.c mutex->guard.done = 1; mutex 49 maint/gnulib/lib/windows-timedmutex.c glwthread_timedmutex_lock (glwthread_timedmutex_t *mutex) mutex 51 maint/gnulib/lib/windows-timedmutex.c if (!mutex->guard.done) mutex 53 maint/gnulib/lib/windows-timedmutex.c if (InterlockedIncrement (&mutex->guard.started) == 0) mutex 57 maint/gnulib/lib/windows-timedmutex.c int err = glwthread_timedmutex_init (mutex); mutex 61 maint/gnulib/lib/windows-timedmutex.c InterlockedDecrement (&mutex->guard.started); mutex 68 maint/gnulib/lib/windows-timedmutex.c InterlockedDecrement (&mutex->guard.started); mutex 71 maint/gnulib/lib/windows-timedmutex.c while (!mutex->guard.done) mutex 75 maint/gnulib/lib/windows-timedmutex.c EnterCriticalSection (&mutex->lock); mutex 80 maint/gnulib/lib/windows-timedmutex.c glwthread_timedmutex_trylock (glwthread_timedmutex_t *mutex) mutex 82 maint/gnulib/lib/windows-timedmutex.c if (!mutex->guard.done) mutex 84 maint/gnulib/lib/windows-timedmutex.c if (InterlockedIncrement (&mutex->guard.started) == 0) mutex 88 maint/gnulib/lib/windows-timedmutex.c int err = glwthread_timedmutex_init (mutex); mutex 92 maint/gnulib/lib/windows-timedmutex.c InterlockedDecrement (&mutex->guard.started); mutex 99 maint/gnulib/lib/windows-timedmutex.c InterlockedDecrement (&mutex->guard.started); mutex 105 maint/gnulib/lib/windows-timedmutex.c if (!TryEnterCriticalSection (&mutex->lock)) mutex 111 maint/gnulib/lib/windows-timedmutex.c glwthread_timedmutex_timedlock (glwthread_timedmutex_t *mutex, mutex 114 maint/gnulib/lib/windows-timedmutex.c if (!mutex->guard.done) mutex 116 maint/gnulib/lib/windows-timedmutex.c if (InterlockedIncrement (&mutex->guard.started) == 0) mutex 120 maint/gnulib/lib/windows-timedmutex.c int err = glwthread_timedmutex_init (mutex); mutex 124 maint/gnulib/lib/windows-timedmutex.c InterlockedDecrement (&mutex->guard.started); mutex 131 maint/gnulib/lib/windows-timedmutex.c InterlockedDecrement (&mutex->guard.started); mutex 134 maint/gnulib/lib/windows-timedmutex.c while (!mutex->guard.done) mutex 147 maint/gnulib/lib/windows-timedmutex.c if (TryEnterCriticalSection (&mutex->lock)) mutex 191 maint/gnulib/lib/windows-timedmutex.c result = WaitForSingleObject (mutex->event, timeout); mutex 204 maint/gnulib/lib/windows-timedmutex.c glwthread_timedmutex_unlock (glwthread_timedmutex_t *mutex) mutex 206 maint/gnulib/lib/windows-timedmutex.c if (!mutex->guard.done) mutex 208 maint/gnulib/lib/windows-timedmutex.c LeaveCriticalSection (&mutex->lock); mutex 212 maint/gnulib/lib/windows-timedmutex.c SetEvent (mutex->event); mutex 217 maint/gnulib/lib/windows-timedmutex.c glwthread_timedmutex_destroy (glwthread_timedmutex_t *mutex) mutex 219 maint/gnulib/lib/windows-timedmutex.c if (!mutex->guard.done) mutex 221 maint/gnulib/lib/windows-timedmutex.c DeleteCriticalSection (&mutex->lock); mutex 224 maint/gnulib/lib/windows-timedmutex.c CloseHandle (mutex->event); mutex 225 maint/gnulib/lib/windows-timedmutex.c mutex->guard.done = 0; mutex 44 maint/gnulib/lib/windows-timedmutex.h extern int glwthread_timedmutex_init (glwthread_timedmutex_t *mutex); mutex 45 maint/gnulib/lib/windows-timedmutex.h extern int glwthread_timedmutex_lock (glwthread_timedmutex_t *mutex); mutex 46 maint/gnulib/lib/windows-timedmutex.h extern int glwthread_timedmutex_trylock (glwthread_timedmutex_t *mutex); mutex 47 maint/gnulib/lib/windows-timedmutex.h extern int glwthread_timedmutex_timedlock (glwthread_timedmutex_t *mutex, mutex 49 maint/gnulib/lib/windows-timedmutex.h extern int glwthread_timedmutex_unlock (glwthread_timedmutex_t *mutex); mutex 50 maint/gnulib/lib/windows-timedmutex.h extern int glwthread_timedmutex_destroy (glwthread_timedmutex_t *mutex); mutex 34 maint/gnulib/lib/windows-timedrecmutex.c glwthread_timedrecmutex_init (glwthread_timedrecmutex_t *mutex) mutex 36 maint/gnulib/lib/windows-timedrecmutex.c mutex->owner = 0; mutex 37 maint/gnulib/lib/windows-timedrecmutex.c mutex->depth = 0; mutex 44 maint/gnulib/lib/windows-timedrecmutex.c mutex->event = event; mutex 45 maint/gnulib/lib/windows-timedrecmutex.c InitializeCriticalSection (&mutex->lock); mutex 46 maint/gnulib/lib/windows-timedrecmutex.c mutex->guard.done = 1; mutex 51 maint/gnulib/lib/windows-timedrecmutex.c glwthread_timedrecmutex_lock (glwthread_timedrecmutex_t *mutex) mutex 53 maint/gnulib/lib/windows-timedrecmutex.c if (!mutex->guard.done) mutex 55 maint/gnulib/lib/windows-timedrecmutex.c if (InterlockedIncrement (&mutex->guard.started) == 0) mutex 59 maint/gnulib/lib/windows-timedrecmutex.c int err = glwthread_timedrecmutex_init (mutex); mutex 63 maint/gnulib/lib/windows-timedrecmutex.c InterlockedDecrement (&mutex->guard.started); mutex 70 maint/gnulib/lib/windows-timedrecmutex.c InterlockedDecrement (&mutex->guard.started); mutex 73 maint/gnulib/lib/windows-timedrecmutex.c while (!mutex->guard.done) mutex 79 maint/gnulib/lib/windows-timedrecmutex.c if (mutex->owner != self) mutex 81 maint/gnulib/lib/windows-timedrecmutex.c EnterCriticalSection (&mutex->lock); mutex 82 maint/gnulib/lib/windows-timedrecmutex.c mutex->owner = self; mutex 84 maint/gnulib/lib/windows-timedrecmutex.c if (++(mutex->depth) == 0) /* wraparound? */ mutex 86 maint/gnulib/lib/windows-timedrecmutex.c mutex->depth--; mutex 94 maint/gnulib/lib/windows-timedrecmutex.c glwthread_timedrecmutex_trylock (glwthread_timedrecmutex_t *mutex) mutex 96 maint/gnulib/lib/windows-timedrecmutex.c if (!mutex->guard.done) mutex 98 maint/gnulib/lib/windows-timedrecmutex.c if (InterlockedIncrement (&mutex->guard.started) == 0) mutex 102 maint/gnulib/lib/windows-timedrecmutex.c int err = glwthread_timedrecmutex_init (mutex); mutex 106 maint/gnulib/lib/windows-timedrecmutex.c InterlockedDecrement (&mutex->guard.started); mutex 113 maint/gnulib/lib/windows-timedrecmutex.c InterlockedDecrement (&mutex->guard.started); mutex 121 maint/gnulib/lib/windows-timedrecmutex.c if (mutex->owner != self) mutex 123 maint/gnulib/lib/windows-timedrecmutex.c if (!TryEnterCriticalSection (&mutex->lock)) mutex 125 maint/gnulib/lib/windows-timedrecmutex.c mutex->owner = self; mutex 127 maint/gnulib/lib/windows-timedrecmutex.c if (++(mutex->depth) == 0) /* wraparound? */ mutex 129 maint/gnulib/lib/windows-timedrecmutex.c mutex->depth--; mutex 137 maint/gnulib/lib/windows-timedrecmutex.c glwthread_timedrecmutex_timedlock (glwthread_timedrecmutex_t *mutex, mutex 140 maint/gnulib/lib/windows-timedrecmutex.c if (!mutex->guard.done) mutex 142 maint/gnulib/lib/windows-timedrecmutex.c if (InterlockedIncrement (&mutex->guard.started) == 0) mutex 146 maint/gnulib/lib/windows-timedrecmutex.c int err = glwthread_timedrecmutex_init (mutex); mutex 150 maint/gnulib/lib/windows-timedrecmutex.c InterlockedDecrement (&mutex->guard.started); mutex 157 maint/gnulib/lib/windows-timedrecmutex.c InterlockedDecrement (&mutex->guard.started); mutex 160 maint/gnulib/lib/windows-timedrecmutex.c while (!mutex->guard.done) mutex 167 maint/gnulib/lib/windows-timedrecmutex.c if (mutex->owner != self) mutex 177 maint/gnulib/lib/windows-timedrecmutex.c if (TryEnterCriticalSection (&mutex->lock)) mutex 221 maint/gnulib/lib/windows-timedrecmutex.c result = WaitForSingleObject (mutex->event, timeout); mutex 230 maint/gnulib/lib/windows-timedrecmutex.c mutex->owner = self; mutex 232 maint/gnulib/lib/windows-timedrecmutex.c if (++(mutex->depth) == 0) /* wraparound? */ mutex 234 maint/gnulib/lib/windows-timedrecmutex.c mutex->depth--; mutex 242 maint/gnulib/lib/windows-timedrecmutex.c glwthread_timedrecmutex_unlock (glwthread_timedrecmutex_t *mutex) mutex 244 maint/gnulib/lib/windows-timedrecmutex.c if (mutex->owner != GetCurrentThreadId ()) mutex 246 maint/gnulib/lib/windows-timedrecmutex.c if (mutex->depth == 0) mutex 248 maint/gnulib/lib/windows-timedrecmutex.c if (--(mutex->depth) == 0) mutex 250 maint/gnulib/lib/windows-timedrecmutex.c mutex->owner = 0; mutex 251 maint/gnulib/lib/windows-timedrecmutex.c LeaveCriticalSection (&mutex->lock); mutex 255 maint/gnulib/lib/windows-timedrecmutex.c SetEvent (mutex->event); mutex 261 maint/gnulib/lib/windows-timedrecmutex.c glwthread_timedrecmutex_destroy (glwthread_timedrecmutex_t *mutex) mutex 263 maint/gnulib/lib/windows-timedrecmutex.c if (mutex->owner != 0) mutex 265 maint/gnulib/lib/windows-timedrecmutex.c DeleteCriticalSection (&mutex->lock); mutex 268 maint/gnulib/lib/windows-timedrecmutex.c CloseHandle (mutex->event); mutex 269 maint/gnulib/lib/windows-timedrecmutex.c mutex->guard.done = 0; mutex 50 maint/gnulib/lib/windows-timedrecmutex.h extern int glwthread_timedrecmutex_init (glwthread_timedrecmutex_t *mutex); mutex 51 maint/gnulib/lib/windows-timedrecmutex.h extern int glwthread_timedrecmutex_lock (glwthread_timedrecmutex_t *mutex); mutex 52 maint/gnulib/lib/windows-timedrecmutex.h extern int glwthread_timedrecmutex_trylock (glwthread_timedrecmutex_t *mutex); mutex 53 maint/gnulib/lib/windows-timedrecmutex.h extern int glwthread_timedrecmutex_timedlock (glwthread_timedrecmutex_t *mutex, mutex 55 maint/gnulib/lib/windows-timedrecmutex.h extern int glwthread_timedrecmutex_unlock (glwthread_timedrecmutex_t *mutex); mutex 56 maint/gnulib/lib/windows-timedrecmutex.h extern int glwthread_timedrecmutex_destroy (glwthread_timedrecmutex_t *mutex);