X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=libthreads.cc;fp=libthreads.cc;h=98df4248fd83749ac9d7c36b7cbb14a3473a2710;hb=4730dd573ad7a28d875c31b6aa633f7bce420054;hp=28982582eb15fadf2e3f4d5a5152ca0e26489ef3;hpb=0e49f3778dcb00bcf9c1690b37864021822d5353;p=model-checker.git diff --git a/libthreads.cc b/libthreads.cc index 2898258..98df424 100644 --- a/libthreads.cc +++ b/libthreads.cc @@ -11,14 +11,13 @@ int thrd_create(thrd_t *t, thrd_start_t start_routine, void *arg) { Thread *thread; - int ret; DBG(); thread = new Thread(t, start_routine, arg); - ret = model->add_thread(thread); + model->add_thread(thread); 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, std::memory_order_seq_cst, thread, VALUE_NONE)); - return ret; + return 0; } int thrd_join(thrd_t t)