• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/mutex/

Lines Matching refs:mutex

14  * This is where we load in architecture/compiler specific mutex code.
41 * IBM's MVS pthread mutex implementation returns -1 and sets errno rather than
52 * Initialize a pthread mutex.
57 __db_pthread_mutex_init(env, mutex, flags)
59 db_mutex_t mutex;
69 mutexp = MUTEXP_SET(mutex);
88 RET_SET((pthread_mutex_init(&mutexp->mutex, mutexattrp)), ret);
126 mutexp->mutex = mi;
130 mutexp->mutex = mi;
151 ret = mutex_init(&mutexp->mutex, type, NULL);
160 __db_err(env, ret, "unable to initialize mutex");
167 * Lock on a mutex, blocking if necessary.
172 __db_pthread_mutex_lock(env, mutex)
174 db_mutex_t mutex;
189 mutexp = MUTEXP_SET(mutex);
198 * spinning only if the thread holding the mutex is actually running
207 RET_SET((pthread_mutex_lock(&mutexp->mutex)), ret);
214 * are only used to wait after spinning on the TAS mutex.
215 * Set the wait flag before checking to see if the mutex
225 &mutexp->cond, &mutexp->mutex)), ret);
241 (void)pthread_mutex_unlock(&mutexp->mutex);
264 RET_SET((pthread_mutex_unlock(&mutexp->mutex)), ret);
288 * we get a mutex to ensure contention.
301 * Release a mutex.
306 __db_pthread_mutex_unlock(env, mutex)
308 db_mutex_t mutex;
323 mutexp = MUTEXP_SET(mutex);
333 RET_SET((pthread_mutex_lock(&mutexp->mutex)), ret);
348 RET_SET((pthread_mutex_unlock(&mutexp->mutex)), ret);
360 * Destroy a mutex.
365 __db_pthread_mutex_destroy(env, mutex)
367 db_mutex_t mutex;
379 mutexp = MUTEXP_SET(mutex);
387 RET_SET((pthread_mutex_destroy(&mutexp->mutex)), t_ret);
389 __db_err(env, t_ret, "unable to destroy mutex");