X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=libthreads.cc;h=adb4b2bfdb0c4f709999d6d2c6af6554098e9325;hb=421c3af5d7265b26a4c946a710f2acd986c5d78a;hp=fce87daf5bc0d8969d4546ce6837a30dda4019eb;hpb=9d9c0f4e9909c2f58889e198a065479003f7bced;p=model-checker.git diff --git a/libthreads.cc b/libthreads.cc index fce87da..adb4b2b 100644 --- a/libthreads.cc +++ b/libthreads.cc @@ -20,7 +20,7 @@ int thrd_create(thrd_t *t, thrd_start_t start_routine, void *arg) int thrd_join(thrd_t t) { - Thread *th = model->get_thread(thrd_to_id(t)); + Thread *th = t.priv; model->switch_to_master(new ModelAction(THREAD_JOIN, std::memory_order_seq_cst, th, id_to_int(thrd_to_id(t)))); return 0; }