make scheduler choose fair schedules when threads with priority are sleeping...
[model-checker.git] / model.cc
index e394865..a96a79c 100644 (file)
--- a/model.cc
+++ b/model.cc
@@ -116,6 +116,10 @@ modelclock_t ModelChecker::get_next_seq_num()
        return ++priv->used_sequence_numbers;
 }
 
        return ++priv->used_sequence_numbers;
 }
 
+Node * ModelChecker::get_curr_node() {
+       return node_stack->get_head();
+}
+
 /**
  * @brief Choose the next thread to execute.
  *
 /**
  * @brief Choose the next thread to execute.
  *