action: add ModelAction::is_thread_join() helper
[model-checker.git] / model.cc
index 0423c6e3141e188238e55bf3f29bfc190b3d104c..e6f9afd9c6fd1d2b904e3ea4e23777198b71561f 100644 (file)
--- a/model.cc
+++ b/model.cc
@@ -1472,7 +1472,7 @@ bool ModelChecker::check_action_enabled(ModelAction *curr) {
                        get_safe_ptr_action(lock_waiters_map, curr->get_location())->push_back(curr);
                        return false;
                }
-       } else if (curr->get_type() == THREAD_JOIN) {
+       } else if (curr->is_thread_join()) {
                Thread *blocking = (Thread *)curr->get_location();
                if (!blocking->is_complete()) {
                        blocking->push_wait_list(curr);