threads: add per-thread "return" values for 'model-checking/user context' switch
[model-checker.git] / threads.cc
index 6d290a94f9f2131b5ca9e7d47b8bae457dd02857..b6eaee4ea18cb511b9d4e37edc78814669e152c8 100644 (file)
@@ -69,7 +69,9 @@ void Thread::complete()
        }
 }
 
-Thread::Thread(thrd_t *t, void (*func)(void *), void *a) {
+Thread::Thread(thrd_t *t, void (*func)(void *), void *a) :
+       last_action_val(VALUE_NONE)
+{
        int ret;
 
        user_thread = t;