Home | History | Annotate | Download | only in pthread_mutex_unlock

Lines Matching defs:mutex

9  *   shall release the mutex object 'mutex'.
12 * -- Initilize a mutex object
13 * -- Get the mutex using pthread_mutex_lock()
14 * -- Release the mutex using pthread_mutex_unlock()
15 * -- Try to get the mutex using pthread_mutex_trylock()
16 * -- Release the mutex using pthread_mutex_unlock()
25 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
31 /* Get the mutex using pthread_mutex_lock() */
32 if ((rc = pthread_mutex_lock(&mutex)) != 0) {
37 /* Release the mutex using pthread_mutex_unlock() */
38 if ((rc = pthread_mutex_unlock(&mutex)) != 0) {
43 /* Get the mutex using pthread_mutex_trylock() */
44 if ((rc = pthread_mutex_trylock(&mutex)) != 0) {
49 /* Release the mutex using pthread_mutex_unlock() */
50 if ((rc = pthread_mutex_unlock(&mutex)) != 0) {