Lines Matching full:mtx
20 pthread_mutex_t *mtx;
23 thread_key(pthread_key_t key, pthread_mutex_t *mtx, int val, int *cnt)
25 , mtx(mtx)
33 EXPECT_EQ(pthread_mutex_lock(k->mtx), 0);
36 EXPECT_EQ(pthread_mutex_unlock(k->mtx), 0);
57 pthread_mutex_t mtx;
58 EXPECT_EQ(pthread_mutex_init(&mtx, 0), 0);
61 k[0] = new thread_key(key, &mtx, 42, &cnt);
62 k[1] = new thread_key(key, &mtx, 43, &cnt);
63 k[2] = new thread_key(key, &mtx, 44, &cnt);