Searched refs:mtx1 (Results 1 – 6 of 6) sorted by relevance
7 pthread_mutex_t mtx1, mtx2; variable17 pthread_mutex_lock(&mtx1); // no-warning in ok1()23 pthread_mutex_unlock(&mtx1); // no-warning in ok2()29 pthread_mutex_lock(&mtx1); // no-warning in ok3()30 pthread_mutex_unlock(&mtx1); // no-warning in ok3()31 pthread_mutex_lock(&mtx1); // no-warning in ok3()32 pthread_mutex_unlock(&mtx1); // no-warning in ok3()38 pthread_mutex_lock(&mtx1); // no-warning in ok4()39 pthread_mutex_unlock(&mtx1); // no-warning in ok4()47 if (pthread_mutex_trylock(&mtx1) == 0) // no-warning in ok5()[all …]
5 pthread_mutex_t mtx1; variable11 pthread_mutex_lock(&mtx1); in Thread1()13 pthread_mutex_unlock(&mtx1); in Thread1()18 pthread_mutex_lock(&mtx1); in Thread2()19 pthread_mutex_unlock(&mtx1); in Thread2()42 pthread_mutex_init(&mtx1, 0); in main()50 pthread_mutex_destroy(&mtx1); in main()
5 pthread_mutex_t mtx1; variable10 pthread_mutex_lock(&mtx1); in Thread1()14 pthread_mutex_unlock(&mtx1); in Thread1()36 pthread_mutex_init(&mtx1, 0); in main()43 pthread_mutex_destroy(&mtx1); in main()
5 pthread_mutex_t mtx1; variable10 pthread_mutex_lock(&mtx1); in Thread1()12 pthread_mutex_unlock(&mtx1); in Thread1()37 pthread_mutex_init(&mtx1, 0); in main()44 pthread_mutex_destroy(&mtx1); in main()
5 pthread_mutex_t mtx1; variable9 pthread_mutex_lock(&mtx1); in Thread1()13 pthread_mutex_unlock(&mtx1); in Thread1()36 pthread_mutex_init(&mtx1, 0); in main()43 pthread_mutex_destroy(&mtx1); in main()
228 Mutex *mtx1 = getMutex(id1); in MutexBeforeLock() local229 SpinMutexLock l(&mtx1->mtx); in MutexBeforeLock()230 if (mtx1->nlink == kMaxLink) { in MutexBeforeLock()235 for (; li < mtx1->nlink; li++) { in MutexBeforeLock()236 Link *link = &mtx1->link[li]; in MutexBeforeLock()245 cb->lt->ctx, getMutexId(mtx1), m->id); in MutexBeforeLock()250 if (li == mtx1->nlink) { in MutexBeforeLock()252 Link *link = &mtx1->link[mtx1->nlink++]; in MutexBeforeLock()260 cb->lt->ctx, getMutexId(mtx1), m->id); in MutexBeforeLock()382 Mutex *mtx1 = getMutex(link.id); in CycleCheck() local[all …]