Lines Matching defs:mtx
38 pthread_mutex_t *mtx = arg;
40 if (pthread_mutex_isowned_np(mtx) != 0) {
52 pthread_mutex_t mtx;
54 pthread_mutex_init(&mtx, NULL);
55 if (pthread_mutex_isowned_np(&mtx) != 0) {
60 pthread_mutex_lock(&mtx);
61 if (pthread_mutex_isowned_np(&mtx) == 0) {
66 pthread_create(&thr, NULL, thread, &mtx);
68 pthread_mutex_unlock(&mtx);
69 if (pthread_mutex_isowned_np(&mtx) != 0) {