X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=libthreads.cc;h=05cca8646a3daf69db7c2992e70e540c893dccf2;hp=f973176ba8344a497e687b8f452fdefed031fe5e;hb=3effbe640f5f299e97c5154b418c58cb809aee6d;hpb=f4d77c40b4029cdc18f4aaa5a4e01dfbcfca5f7b diff --git a/libthreads.cc b/libthreads.cc index f973176b..05cca864 100644 --- a/libthreads.cc +++ b/libthreads.cc @@ -1,6 +1,6 @@ -#include "libthreads.h" +#include #include "common.h" -#include "threads.h" +#include "threads-model.h" /* global "model" object */ #include "model.h" @@ -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)