7 #include <condition_variable>
10 std::condition_variable *v;
13 static void a(void *obj)
17 while(load_32(&shareddata)==0)
23 static void b(void *obj)
26 store_32(&shareddata, (unsigned int) 1);
31 int user_main(int argc, char **argv)
34 store_32(&shareddata, (unsigned int) 0);
36 v=new std::condition_variable();
38 thrd_create(&t1, (thrd_start_t)&a, NULL);
39 thrd_create(&t2, (thrd_start_t)&b, NULL);