X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=libthreads.cc;fp=libthreads.cc;h=b5760ae6eab89f381a67b12a4e05f0402ef7ad76;hb=c5e14aa2426f21f8de620cf24ed321447d75c989;hp=73a948cc4a493a7fa4b3c1bea65af8653c6ebc17;hpb=efd0e6cfa2827dfec2cf5932c02f9c6559389f4d;p=model-checker.git diff --git a/libthreads.cc b/libthreads.cc index 73a948c..b5760ae 100644 --- a/libthreads.cc +++ b/libthreads.cc @@ -14,6 +14,8 @@ int thrd_create(thrd_t *t, void (*start_routine)(), void *arg) DBG(); ret = model->add_thread(new Thread(t, start_routine, arg)); DEBUG("create thread %d\n", id_to_int(thrd_to_id(*t))); + /* seq_cst is just a 'don't care' parameter */ + model->switch_to_master(new ModelAction(THREAD_CREATE, memory_order_seq_cst, NULL, VALUE_NONE)); return ret; }