9 struct mcs_mutex *mutex;
10 static uint32_t shared;
12 void threadA(void *arg)
14 mcs_mutex::guard g(mutex);
20 void threadB(void *arg)
22 mcs_mutex::guard g(mutex);
28 int user_main(int argc, char **argv)
32 mutex = new mcs_mutex();
34 thrd_create(&A, &threadA, NULL);
35 thrd_create(&B, &threadB, NULL);