X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=model.cc;h=436c337d3932f4d45a7d13ee0e8fe674d1a0ea9a;hp=7fdc824669588e216017846490751e14d69337eb;hb=ad52dcdb3a75a69242a392165934e942cb76513b;hpb=30999f20b8426081e676adfc76d1c4af7b941e8e diff --git a/model.cc b/model.cc index 7fdc8246..436c337d 100644 --- a/model.cc +++ b/model.cc @@ -1113,7 +1113,7 @@ bool ModelChecker::process_thread_action(ModelAction *curr) case THREAD_CREATE: { thrd_t *thrd = (thrd_t *)curr->get_location(); struct thread_params *params = (struct thread_params *)curr->get_value(); - Thread *th = new Thread(thrd, params->func, params->arg); + Thread *th = new Thread(thrd, params->func, params->arg, get_thread(curr)); add_thread(th); th->set_creation(curr); /* Promises can be satisfied by children */ @@ -2890,7 +2890,7 @@ void ModelChecker::run() { do { thrd_t user_thread; - Thread *t = new Thread(&user_thread, &user_main_wrapper, NULL); + Thread *t = new Thread(&user_thread, &user_main_wrapper, NULL, NULL); add_thread(t); do {