From 822674ef74d355637bc3ab2dda6fb63322a1f367 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Wed, 3 Oct 2012 13:16:00 -0700 Subject: [PATCH] model: move get_current_thread() implementation out of header --- model.cc | 6 ++++++ model.h | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/model.cc b/model.cc index 6ec6080..9371b89 100644 --- a/model.cc +++ b/model.cc @@ -99,6 +99,12 @@ int ModelChecker::get_num_threads() return priv->next_thread_id; } +/** @return The currently executing Thread. */ +Thread * ModelChecker::get_current_thread() +{ + return scheduler->get_current_thread(); +} + /** @return a sequence number for a new ModelAction */ modelclock_t ModelChecker::get_next_seq_num() { diff --git a/model.h b/model.h index 7241765..8e57876 100644 --- a/model.h +++ b/model.h @@ -78,9 +78,7 @@ public: thread_id_t get_next_id(); int get_num_threads(); - - /** @return The currently executing Thread. */ - Thread * get_current_thread() { return scheduler->get_current_thread(); } + Thread * get_current_thread(); int switch_to_master(ModelAction *act); ClockVector * get_cv(thread_id_t tid); -- 2.34.1