Lines Matching refs:mtx
36 pthread_mutex_t *mtx = arg;
38 if (pthread_mutex_isowned_np(mtx) != 0) {
50 pthread_mutex_t mtx;
52 pthread_mutex_init(&mtx, NULL);
53 if (pthread_mutex_isowned_np(&mtx) != 0) {
58 pthread_mutex_lock(&mtx);
59 if (pthread_mutex_isowned_np(&mtx) == 0) {
64 pthread_create(&thr, NULL, thread, &mtx);
66 pthread_mutex_unlock(&mtx);
67 if (pthread_mutex_isowned_np(&mtx) != 0) {