model: get_num_threads() should be const
[model-checker.git] / model.cc
index 78907f1dab02648a327c86f1c0fbd3a72dd80c05..bcc10e20e3d854673c69be58337a2d39764bd68a 100644 (file)
--- a/model.cc
+++ b/model.cc
@@ -101,7 +101,7 @@ thread_id_t ModelChecker::get_next_id()
 }
 
 /** @return the number of user threads created during this execution */
-unsigned int ModelChecker::get_num_threads()
+unsigned int ModelChecker::get_num_threads() const
 {
        return priv->next_thread_id;
 }