X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=libthreads.cc;h=05cca8646a3daf69db7c2992e70e540c893dccf2;hb=d1fab609e185bf89056da0f88030750d28bc9b32;hp=9e34141bc1de608abdb89393a3fe63570ff25f7d;hpb=e60d8c23d30a0dfe66b8426f7f2ecf576e812028;p=model-checker.git diff --git a/libthreads.cc b/libthreads.cc index 9e34141..05cca86 100644 --- a/libthreads.cc +++ b/libthreads.cc @@ -1,4 +1,4 @@ -#include "libthreads.h" +#include #include "common.h" #include "threads-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)