X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Funinit.cc;h=759a4fd8eaabf1f502bc22d9dddc66f8ec55e40b;hb=dc9c89654982c64264dfee7b1ea23e9a5e88e18e;hp=edeae43122e7f8b5a46dc78671abf5763e895f8b;hpb=f41ab746f55e04e33a15c41fa61aa084d2f98ed2;p=model-checker.git diff --git a/test/uninit.cc b/test/uninit.cc index edeae43..759a4fd 100644 --- a/test/uninit.cc +++ b/test/uninit.cc @@ -5,9 +5,6 @@ * This is a test of the "uninitialized loads" code. While we don't explicitly * initialize y, this example's synchronization pattern should guarantee we * never see it uninitialized. - * - * @todo (12/11/12) this example currently doesn't run properly; it never sees - * the behavior where 'flag == 2'. */ #include #include @@ -43,7 +40,7 @@ int user_main(int argc, char **argv) std::atomic_init(&x, 0); - printf("Thread %d: creating 2 threads\n", thrd_current()); + printf("Main thread: creating 2 threads\n"); thrd_create(&t1, (thrd_start_t)&a, NULL); thrd_create(&t2, (thrd_start_t)&b, NULL); thrd_create(&t3, (thrd_start_t)&c, NULL); @@ -51,7 +48,7 @@ int user_main(int argc, char **argv) thrd_join(t1); thrd_join(t2); thrd_join(t3); - printf("Thread %d is finished\n", thrd_current()); + printf("Main thread is finished\n"); return 0; }