threads: correct 'thrd_yield()'
[c11tester.git] / libthreads.cc
index 2b2bf85ac374b2a57ab85b2ddfb82f184c6372ea..05cca8646a3daf69db7c2992e70e540c893dccf2 100644 (file)
@@ -27,10 +27,10 @@ int thrd_join(thrd_t t)
        return 0;
 }
 
-int thrd_yield(void)
+/** A no-op, for now */
+void thrd_yield(void)
 {
-       /* seq_cst is just a 'don't care' parameter */
-       return model->switch_to_master(new ModelAction(THREAD_YIELD, std::memory_order_seq_cst, NULL, VALUE_NONE));
+       //model->switch_to_master(new ModelAction(THREAD_YIELD, std::memory_order_seq_cst, thread_current(), VALUE_NONE));
 }
 
 thrd_t thrd_current(void)