edits
[c11tester.git] / threads.cc
index 3d6b0863234273684de989ce7dd199e9f1931a72..fc5c84a160296f12f7b3c39db3a84c898bafee9f 100644 (file)
@@ -60,7 +60,7 @@ Thread * thread_current(void)
 }
 
 void modelexit() {
-       model->switch_thread(new ModelAction(THREAD_FINISH, std::memory_order_seq_cst, thread_current()));
+       model->switch_to_master(new ModelAction(THREAD_FINISH, std::memory_order_seq_cst, thread_current()));
 }
 
 void initMainThread() {