model: get_num_threads() should be const
[model-checker.git] / model.cc
index b29df05cafe86fadefa27b85c535e30eb94fd43e..ff1fdf932ee302fb6cc36c9199cd54c15f3bb50d 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;
 }