/freebsd-10.2-release/contrib/gcclibs/libgomp/config/linux/ |
H A D | mutex.c | 28 /* This is a Linux specific implementation of a mutex synchronization 37 gomp_mutex_lock_slow (gomp_mutex_t *mutex) argument 41 int oldval = __sync_val_compare_and_swap (mutex, 1, 2); 43 futex_wait (mutex, 2); 45 while (!__sync_bool_compare_and_swap (mutex, 0, 2)); 49 gomp_mutex_unlock_slow (gomp_mutex_t *mutex) argument 51 futex_wake (mutex, 1);
|
H A D | mutex.h | 28 /* This is a Linux specific implementation of a mutex synchronization 39 static inline void gomp_mutex_init (gomp_mutex_t *mutex) argument 41 *mutex = 0; 44 extern void gomp_mutex_lock_slow (gomp_mutex_t *mutex); 45 static inline void gomp_mutex_lock (gomp_mutex_t *mutex) argument 47 if (!__sync_bool_compare_and_swap (mutex, 0, 1)) 48 gomp_mutex_lock_slow (mutex); 51 extern void gomp_mutex_unlock_slow (gomp_mutex_t *mutex); 52 static inline void gomp_mutex_unlock (gomp_mutex_t *mutex) argument 54 int val = __sync_lock_test_and_set (mutex, 59 gomp_mutex_destroy(gomp_mutex_t *mutex) argument [all...] |
H A D | bar.h | 35 #include "mutex.h" 39 gomp_mutex_t mutex; member in struct:__anon1269 47 gomp_mutex_init (&bar->mutex); 55 gomp_mutex_lock (&bar->mutex); 57 gomp_mutex_unlock (&bar->mutex); 63 gomp_mutex_lock (&bar->mutex); 71 gomp_mutex_lock (&bar->mutex);
|
/freebsd-10.2-release/contrib/gcclibs/libgomp/config/posix/ |
H A D | mutex.h | 28 /* This is the default PTHREADS implementation of a mutex synchronization 40 static inline void gomp_mutex_init (gomp_mutex_t *mutex) argument 42 pthread_mutex_init (mutex, NULL); 45 static inline void gomp_mutex_lock (gomp_mutex_t *mutex) argument 47 pthread_mutex_lock (mutex); 50 static inline void gomp_mutex_unlock (gomp_mutex_t *mutex) argument 52 pthread_mutex_unlock (mutex); 55 static inline void gomp_mutex_destroy (gomp_mutex_t *mutex) argument 57 pthread_mutex_destroy (mutex);
|
/freebsd-10.2-release/contrib/gcc/config/i386/ |
H A D | gthr-win32.c | 66 3. We are currently using a special mutex instead of the Critical 147 __gthr_win32_mutex_init_function (__gthread_mutex_t *mutex) argument 149 mutex->counter = -1; 150 mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL); 154 __gthr_win32_mutex_lock (__gthread_mutex_t *mutex) argument 156 if (InterlockedIncrement (&mutex->counter) == 0 || 157 WaitForSingleObject (mutex->sema, INFINITE) == WAIT_OBJECT_0) 163 InterlockedDecrement (&mutex->counter); 169 __gthr_win32_mutex_trylock (__gthread_mutex_t *mutex) argument 171 if (__GTHR_W32_InterlockedCompareExchange (&mutex 178 __gthr_win32_mutex_unlock(__gthread_mutex_t *mutex) argument 187 __gthr_win32_recursive_mutex_init_function(__gthread_recursive_mutex_t *mutex) argument 196 __gthr_win32_recursive_mutex_lock(__gthread_recursive_mutex_t *mutex) argument 225 __gthr_win32_recursive_mutex_trylock(__gthread_recursive_mutex_t *mutex) argument 242 __gthr_win32_recursive_mutex_unlock(__gthread_recursive_mutex_t *mutex) argument [all...] |
/freebsd-10.2-release/contrib/gcc/ |
H A D | gthr-rtems.h | 64 /* mutex support */ 65 extern void rtems_gxx_mutex_init (__gthread_mutex_t *mutex); 66 extern int rtems_gxx_mutex_lock (__gthread_mutex_t *mutex); 67 extern int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex); 68 extern int rtems_gxx_mutex_unlock (__gthread_mutex_t *mutex); 70 /* recursive mutex support */ 71 extern void rtems_gxx_recursive_mutex_init (__gthread_recursive_mutex_t *mutex); 72 extern int rtems_gxx_recursive_mutex_lock (__gthread_recursive_mutex_t *mutex); 73 extern int rtems_gxx_recursive_mutex_trylock (__gthread_recursive_mutex_t *mutex); 74 extern int rtems_gxx_recursive_mutex_unlock (__gthread_recursive_mutex_t *mutex); 115 __gthread_mutex_lock(__gthread_mutex_t *mutex) argument 121 __gthread_mutex_trylock(__gthread_mutex_t *mutex) argument 127 __gthread_mutex_unlock(__gthread_mutex_t *mutex) argument 133 __gthread_recursive_mutex_lock(__gthread_recursive_mutex_t *mutex) argument 139 __gthread_recursive_mutex_trylock(__gthread_recursive_mutex_t *mutex) argument 145 __gthread_recursive_mutex_unlock(__gthread_recursive_mutex_t *mutex) argument [all...] |
H A D | gthr-vxworks.h | 54 __gthread_mutex_init_function (__gthread_mutex_t *mutex) argument 56 *mutex = semMCreate (SEM_Q_PRIORITY | SEM_INVERSION_SAFE | SEM_DELETE_SAFE); 60 __gthread_mutex_lock (__gthread_mutex_t *mutex) argument 62 return semTake (*mutex, WAIT_FOREVER); 66 __gthread_mutex_trylock (__gthread_mutex_t *mutex) argument 68 return semTake (*mutex, NO_WAIT); 72 __gthread_mutex_unlock (__gthread_mutex_t *mutex) argument 74 return semGive (*mutex); 78 __gthread_recursive_mutex_init_function (__gthread_recursive_mutex_t *mutex) argument 80 __gthread_mutex_init_function (mutex); 84 __gthread_recursive_mutex_lock(__gthread_recursive_mutex_t *mutex) argument 90 __gthread_recursive_mutex_trylock(__gthread_recursive_mutex_t *mutex) argument 96 __gthread_recursive_mutex_unlock(__gthread_recursive_mutex_t *mutex) argument [all...] |
H A D | gthr-single.h | 32 /* Just provide compatibility for mutex handling. */ 133 /* Backend mutex functions */ 135 /* Allocate a mutex. */ 137 __gthread_objc_mutex_allocate (objc_mutex_t UNUSED(mutex)) 142 /* Deallocate a mutex. */ 144 __gthread_objc_mutex_deallocate (objc_mutex_t UNUSED(mutex)) 149 /* Grab a lock on a mutex. */ 151 __gthread_objc_mutex_lock (objc_mutex_t UNUSED(mutex)) 157 /* Try to grab a lock on a mutex. */ 159 __gthread_objc_mutex_trylock (objc_mutex_t UNUSED(mutex)) 237 __gthread_recursive_mutex_lock(__gthread_recursive_mutex_t *mutex) argument 243 __gthread_recursive_mutex_trylock(__gthread_recursive_mutex_t *mutex) argument 249 __gthread_recursive_mutex_unlock(__gthread_recursive_mutex_t *mutex) argument [all...] |
H A D | gthr-win32.h | 59 3. We are currently using a special mutex instead of the Critical 232 /* Backend mutex functions */ 234 /* Allocate a mutex. */ 236 __gthread_objc_mutex_allocate (objc_mutex_t mutex) argument 238 if ((mutex->backend = (void *) CreateMutex (NULL, 0, NULL)) == NULL) 244 /* Deallocate a mutex. */ 246 __gthread_objc_mutex_deallocate (objc_mutex_t mutex) argument 248 CloseHandle ((HANDLE) (mutex->backend)); 252 /* Grab a lock on a mutex. */ 254 __gthread_objc_mutex_lock (objc_mutex_t mutex) argument 267 __gthread_objc_mutex_trylock(objc_mutex_t mutex) argument 280 __gthread_objc_mutex_unlock(objc_mutex_t mutex) argument 308 __gthread_objc_condition_wait(objc_condition_t condition, objc_mutex_t mutex) argument 461 __gthread_mutex_init_function(__gthread_mutex_t *mutex) argument 467 __gthread_mutex_lock(__gthread_mutex_t *mutex) argument 476 __gthread_mutex_trylock(__gthread_mutex_t *mutex) argument 485 __gthread_mutex_unlock(__gthread_mutex_t *mutex) argument 494 __gthread_recursive_mutex_init_function(__gthread_recursive_mutex_t *mutex) argument 500 __gthread_recursive_mutex_lock(__gthread_recursive_mutex_t *mutex) argument 509 __gthread_recursive_mutex_trylock(__gthread_recursive_mutex_t *mutex) argument 518 __gthread_recursive_mutex_unlock(__gthread_recursive_mutex_t *mutex) argument 611 __gthread_mutex_init_function(__gthread_mutex_t *mutex) argument 618 __gthread_mutex_lock(__gthread_mutex_t *mutex) argument 639 __gthread_mutex_trylock(__gthread_mutex_t *mutex) argument 654 __gthread_mutex_unlock(__gthread_mutex_t *mutex) argument 665 __gthread_recursive_mutex_init_function(__gthread_recursive_mutex_t *mutex) argument 674 __gthread_recursive_mutex_lock(__gthread_recursive_mutex_t *mutex) argument 706 __gthread_recursive_mutex_trylock(__gthread_recursive_mutex_t *mutex) argument 725 __gthread_recursive_mutex_unlock(__gthread_recursive_mutex_t *mutex) argument [all...] |
H A D | gthr-nks.h | 173 /* Backend mutex functions */ 175 /* Allocate a mutex. */ 177 __gthread_objc_mutex_allocate (objc_mutex_t mutex) argument 181 if ((mutex->backend = NXMutexAlloc (0, 0, &info)) == NULL) 186 /* Deallocate a mutex. */ 188 __gthread_objc_mutex_deallocate (objc_mutex_t mutex) argument 190 while (NXMutexIsOwned ((NXMutex_t *)mutex->backend)) 191 NXUnlock ((NXMutex_t *)mutex->backend); 192 if (NXMutexFree ((NXMutex_t *)mutex->backend) != 0) 194 mutex 200 __gthread_objc_mutex_lock(objc_mutex_t mutex) argument 207 __gthread_objc_mutex_trylock(objc_mutex_t mutex) argument 216 __gthread_objc_mutex_unlock(objc_mutex_t mutex) argument 246 __gthread_objc_condition_wait(objc_condition_t condition, objc_mutex_t mutex) argument 337 __gthread_mutex_init_function(__gthread_mutex_t *mutex) argument 345 __gthread_mutex_lock(__gthread_mutex_t *mutex) argument 351 __gthread_mutex_trylock(__gthread_mutex_t *mutex) argument 359 __gthread_mutex_unlock(__gthread_mutex_t *mutex) argument 365 __gthread_recursive_mutex_init_function(__gthread_recursive_mutex_t *mutex) argument 373 __gthread_recursive_mutex_lock(__gthread_recursive_mutex_t *mutex) argument 379 __gthread_recursive_mutex_trylock(__gthread_recursive_mutex_t *mutex) argument 387 __gthread_recursive_mutex_unlock(__gthread_recursive_mutex_t *mutex) argument [all...] |
H A D | gthr-solaris.h | 50 mutex_t mutex; member in struct:__anon1159 293 /* Backend mutex functions */ 295 /* Allocate a mutex. */ 297 __gthread_objc_mutex_allocate (objc_mutex_t mutex) argument 300 && __gthrw_(mutex_init) ((mutex_t *) (&(mutex->backend)), USYNC_THREAD, 0)) 306 /* Deallocate a mutex. */ 308 __gthread_objc_mutex_deallocate (objc_mutex_t mutex) argument 311 __gthrw_(mutex_destroy) ((mutex_t *) (&(mutex->backend))); 316 /* Grab a lock on a mutex. */ 318 __gthread_objc_mutex_lock (objc_mutex_t mutex) argument 329 __gthread_objc_mutex_trylock(objc_mutex_t mutex) argument 340 __gthread_objc_mutex_unlock(objc_mutex_t mutex) argument 374 __gthread_objc_condition_wait(objc_condition_t condition, objc_mutex_t mutex) argument 465 __gthread_mutex_lock(__gthread_mutex_t *mutex) argument 474 __gthread_mutex_trylock(__gthread_mutex_t *mutex) argument 483 __gthread_mutex_unlock(__gthread_mutex_t *mutex) argument 492 __gthread_recursive_mutex_init_function(__gthread_recursive_mutex_t *mutex) argument 500 __gthread_recursive_mutex_lock(__gthread_recursive_mutex_t *mutex) argument 518 __gthread_recursive_mutex_trylock(__gthread_recursive_mutex_t *mutex) argument 537 __gthread_recursive_mutex_unlock(__gthread_recursive_mutex_t *mutex) argument [all...] |
/freebsd-10.2-release/tools/tools/mtxstat/ |
H A D | mtxratio.sh | 2 sysctl debug.mutex.prof.stats | awk '$1 ~ /[0-9]+/ { if ($3 != 0) { hld_prc = $5 / $3 * 100; lck_prc = $6 / $3 * 100 } else { hld_prc = 0; lck_prc = 0 } print $1 " " $2 " " $3 " " $4 " " $5 " " hld_prc " " $6 " " lck_prc " " substr($0, index($0, $7)); next } { print }'
|
/freebsd-10.2-release/contrib/subversion/subversion/include/private/ |
H A D | svn_mutex.h | 44 /** A mutex for synchronization between threads. It may be NULL, in 58 /** Initialize the @a *mutex. If @a mutex_required is TRUE, the mutex will 66 svn_mutex__init(svn_mutex__t **mutex, 70 /** Acquire the @a mutex, if that has been enabled in svn_mutex__init(). 72 * thread to release the mutex again. Recursive locking are not supported. 78 svn_mutex__lock(svn_mutex__t *mutex); 80 /** Release the @a mutex, previously acquired using svn_mutex__lock() 94 svn_mutex__unlock(svn_mutex__t *mutex, 97 /** Acquires the @a mutex, execute [all...] |
/freebsd-10.2-release/contrib/apr/locks/unix/ |
H A D | thread_mutex.c | 25 apr_thread_mutex_t *mutex = data; local 28 rv = pthread_mutex_destroy(&mutex->mutex); 37 APR_DECLARE(apr_status_t) apr_thread_mutex_create(apr_thread_mutex_t **mutex, 66 rv = pthread_mutex_init(&new_mutex->mutex, &mattr); 71 rv = pthread_mutex_init(&new_mutex->mutex, NULL); 84 *mutex = new_mutex; 88 APR_DECLARE(apr_status_t) apr_thread_mutex_lock(apr_thread_mutex_t *mutex) 92 rv = pthread_mutex_lock(&mutex->mutex); [all...] |
H A D | global_mutex.c | 45 APR_DECLARE(apr_status_t) apr_global_mutex_create(apr_global_mutex_t **mutex, 77 *mutex = m; 82 apr_global_mutex_t **mutex, 88 rv = apr_proc_mutex_child_init(&((*mutex)->proc_mutex), fname, pool); 92 APR_DECLARE(apr_status_t) apr_global_mutex_lock(apr_global_mutex_t *mutex) 97 if (mutex->thread_mutex) { 98 rv = apr_thread_mutex_lock(mutex->thread_mutex); 105 rv = apr_proc_mutex_lock(mutex->proc_mutex); 109 if (mutex->thread_mutex) { 110 (void)apr_thread_mutex_unlock(mutex 178 apr_global_mutex_lockfile(apr_global_mutex_t *mutex) argument 183 apr_global_mutex_name(apr_global_mutex_t *mutex) argument [all...] |
H A D | proc_mutex.c | 23 APR_DECLARE(apr_status_t) apr_proc_mutex_destroy(apr_proc_mutex_t *mutex) 25 return apr_pool_cleanup_run(mutex->pool, mutex, apr_proc_mutex_cleanup); 30 static apr_status_t proc_mutex_no_child_init(apr_proc_mutex_t **mutex, argument 46 apr_proc_mutex_t *mutex = mutex_; local 48 if (sem_close(mutex->psem_interproc) < 0) { 141 static apr_status_t proc_mutex_posix_acquire(apr_proc_mutex_t *mutex) argument 143 if (sem_wait(mutex->psem_interproc) < 0) { 146 mutex->curr_locked = 1; 150 static apr_status_t proc_mutex_posix_tryacquire(apr_proc_mutex_t *mutex) argument 162 proc_mutex_posix_release(apr_proc_mutex_t *mutex) argument 212 apr_proc_mutex_t *mutex=mutex_; local 249 proc_mutex_sysv_acquire(apr_proc_mutex_t *mutex) argument 263 proc_mutex_sysv_tryacquire(apr_proc_mutex_t *mutex) argument 280 proc_mutex_sysv_release(apr_proc_mutex_t *mutex) argument 316 apr_proc_mutex_t *mutex=mutex_; local 429 proc_mutex_proc_pthread_acquire(apr_proc_mutex_t *mutex) argument 452 proc_mutex_proc_pthread_tryacquire(apr_proc_mutex_t *mutex) argument 479 proc_mutex_proc_pthread_release(apr_proc_mutex_t *mutex) argument 531 apr_proc_mutex_t *mutex=mutex_; local 574 proc_mutex_fcntl_acquire(apr_proc_mutex_t *mutex) argument 588 proc_mutex_fcntl_tryacquire(apr_proc_mutex_t *mutex) argument 609 proc_mutex_fcntl_release(apr_proc_mutex_t *mutex) argument 648 apr_proc_mutex_t *mutex=mutex_; local 692 proc_mutex_flock_acquire(apr_proc_mutex_t *mutex) argument 706 proc_mutex_flock_tryacquire(apr_proc_mutex_t *mutex) argument 723 proc_mutex_flock_release(apr_proc_mutex_t *mutex) argument 737 proc_mutex_flock_child_init(apr_proc_mutex_t **mutex, apr_pool_t *pool, const char *fname) argument 852 apr_proc_mutex_t mutex; local 924 apr_proc_mutex_name(apr_proc_mutex_t *mutex) argument 929 apr_proc_mutex_lockfile(apr_proc_mutex_t *mutex) argument [all...] |
/freebsd-10.2-release/contrib/apr/include/ |
H A D | apr_proc_mutex.h | 53 /** Opaque structure representing a process mutex. */ 59 * Create and initialize a mutex that can be used to synchronize processes. 60 * @param mutex the memory address where the newly created mutex will be 74 * @param pool the pool from which to allocate the mutex. 79 APR_DECLARE(apr_status_t) apr_proc_mutex_create(apr_proc_mutex_t **mutex, 85 * Re-open a mutex in a child process. 86 * @param mutex The newly re-opened mutex structure. 87 * @param fname A file name to use if the mutex mechanis 104 APR_DECLARE(apr_status_t) apr_proc_mutex_lock(apr_proc_mutex_t *mutex); variable 113 APR_DECLARE(apr_status_t) apr_proc_mutex_trylock(apr_proc_mutex_t *mutex); variable 119 APR_DECLARE(apr_status_t) apr_proc_mutex_unlock(apr_proc_mutex_t *mutex); variable 125 APR_DECLARE(apr_status_t) apr_proc_mutex_destroy(apr_proc_mutex_t *mutex); variable 140 APR_DECLARE(const char *) apr_proc_mutex_lockfile(apr_proc_mutex_t *mutex); variable 147 APR_DECLARE(const char *) apr_proc_mutex_name(apr_proc_mutex_t *mutex); variable [all...] |
H A D | apr_global_mutex.h | 45 /** Opaque global mutex structure. */ 51 * Create and initialize a mutex that can be used to synchronize both 56 * @param mutex the memory address where the newly created mutex will be 70 * @param pool the pool from which to allocate the mutex. 74 APR_DECLARE(apr_status_t) apr_global_mutex_create(apr_global_mutex_t **mutex, 80 * Re-open a mutex in a child process. 81 * @param mutex The newly re-opened mutex structure. 82 * @param fname A file name to use if the mutex mechanis 100 APR_DECLARE(apr_status_t) apr_global_mutex_lock(apr_global_mutex_t *mutex); variable 109 APR_DECLARE(apr_status_t) apr_global_mutex_trylock(apr_global_mutex_t *mutex); variable 115 APR_DECLARE(apr_status_t) apr_global_mutex_unlock(apr_global_mutex_t *mutex); variable 121 APR_DECLARE(apr_status_t) apr_global_mutex_destroy(apr_global_mutex_t *mutex); variable 127 APR_DECLARE(const char *) apr_global_mutex_lockfile(apr_global_mutex_t *mutex); variable 135 APR_DECLARE(const char *) apr_global_mutex_name(apr_global_mutex_t *mutex); variable [all...] |
H A D | apr_thread_mutex.h | 40 /** Opaque thread-local mutex structure */ 51 * Create and initialize a mutex that can be used to synchronize threads. 52 * @param mutex the memory address where the newly created mutex will be 60 * @param pool the pool from which to allocate the mutex. 62 * most optimal mutex based on a given platform's performance characteristics, 65 APR_DECLARE(apr_status_t) apr_thread_mutex_create(apr_thread_mutex_t **mutex, 69 * Acquire the lock for the given mutex. If the mutex is already locked, 71 * @param mutex th 73 APR_DECLARE(apr_status_t) apr_thread_mutex_lock(apr_thread_mutex_t *mutex); variable 82 APR_DECLARE(apr_status_t) apr_thread_mutex_trylock(apr_thread_mutex_t *mutex); variable 88 APR_DECLARE(apr_status_t) apr_thread_mutex_unlock(apr_thread_mutex_t *mutex); variable 94 APR_DECLARE(apr_status_t) apr_thread_mutex_destroy(apr_thread_mutex_t *mutex); variable [all...] |
/freebsd-10.2-release/contrib/jemalloc/include/jemalloc/internal/ |
H A D | mutex.h | 48 bool malloc_mutex_init(malloc_mutex_t *mutex); 49 void malloc_mutex_prefork(malloc_mutex_t *mutex); 50 void malloc_mutex_postfork_parent(malloc_mutex_t *mutex); 51 void malloc_mutex_postfork_child(malloc_mutex_t *mutex); 60 void malloc_mutex_lock(malloc_mutex_t *mutex); 61 void malloc_mutex_unlock(malloc_mutex_t *mutex); 66 malloc_mutex_lock(malloc_mutex_t *mutex) argument 71 EnterCriticalSection(&mutex->lock); 73 OSSpinLockLock(&mutex->lock); 75 pthread_mutex_lock(&mutex 81 malloc_mutex_unlock(malloc_mutex_t *mutex) argument [all...] |
/freebsd-10.2-release/contrib/jemalloc/src/ |
H A D | mutex.c | 67 JEMALLOC_EXPORT int _pthread_mutex_init_calloc_cb(pthread_mutex_t *mutex, 72 _pthread_mutex_init_calloc_cb(pthread_mutex_t *mutex, argument 78 mutex, calloc_cb)); 83 malloc_mutex_init(malloc_mutex_t *mutex) argument 87 if (!InitializeCriticalSectionAndSpinCount(&mutex->lock, 91 mutex->lock = 0; 94 mutex->postponed_next = postponed_mutexes; 95 postponed_mutexes = mutex; 97 if (_pthread_mutex_init_calloc_cb(&mutex->lock, base_calloc) != 107 if (pthread_mutex_init(&mutex 117 malloc_mutex_prefork(malloc_mutex_t *mutex) argument 124 malloc_mutex_postfork_parent(malloc_mutex_t *mutex) argument 131 malloc_mutex_postfork_child(malloc_mutex_t *mutex) argument [all...] |
/freebsd-10.2-release/lib/libkse/thread/ |
H A D | thr_mutex_prioceiling.c | 79 _pthread_mutex_getprioceiling(pthread_mutex_t *mutex, argument 84 if ((mutex == NULL) || (*mutex == NULL)) 86 else if ((*mutex)->m_protocol != PTHREAD_PRIO_PROTECT) 89 *prioceiling = (*mutex)->m_prio; 96 _pthread_mutex_setprioceiling(pthread_mutex_t *mutex, argument 102 if ((mutex == NULL) || (*mutex == NULL)) 104 else if ((*mutex)->m_protocol != PTHREAD_PRIO_PROTECT) 106 /* Lock the mutex [all...] |
/freebsd-10.2-release/contrib/llvm/lib/Support/ |
H A D | Mutex.cpp | 48 pthread_mutex_t* mutex = 52 // Initialize the mutex attributes 56 // Initialize the mutex as a recursive mutex, if requested, or normal 64 // Make it a process local mutex 69 // Initialize the mutex 70 errorcode = pthread_mutex_init(mutex, &attr); 78 data_ = mutex; 84 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); 85 assert(mutex ! [all...] |
/freebsd-10.2-release/lib/libkse/test/ |
H A D | mutex_d.exp | 24 Destruction of unused mutex - PASS 25 Destruction of mutex locked by self - PASS 26 Destruction of mutex locked by another thread - PASS 27 Destruction of mutex while being used in cond_wait - PASS 29 Destruction of unused mutex - PASS 30 Destruction of mutex locked by self - PASS 31 Destruction of mutex locked by another thread - PASS 32 Destruction of mutex while being used in cond_wait - PASS 34 Destruction of unused mutex - PASS 35 Destruction of mutex locke [all...] |
/freebsd-10.2-release/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_barrier.c | 45 pthread_mutex_t mutex; variable 59 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 63 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); 79 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); 83 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 85 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); 93 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 95 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); 99 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 101 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); [all...] |