various fixes. linux rw locks should work again with -m 1
[model-checker.git] / schedule.cc
index 1cd5b0f..93379c2 100644 (file)
@@ -29,6 +29,8 @@ void Scheduler::set_enabled(Thread *t, enabled_type_t enabled_status) {
                enabled_len=threadid+1;
        }
        enabled[threadid]=enabled_status;
+       if (enabled_status == THREAD_DISABLED)
+               model->check_promises_thread_disabled();
 }
 
 /**