projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix scheduling stuff to get nice round robin scheduler behavior...
[model-checker.git]
/
schedule.cc
diff --git
a/schedule.cc
b/schedule.cc
index e87490313cf4836e1f11dab9528ef7ad00b6bf26..8d44eec6d7648b467aa2bc3bf0abfc1c3478ca38 100644
(file)
--- a/
schedule.cc
+++ b/
schedule.cc
@@
-207,6
+207,10
@@
Thread * Scheduler::select_next_thread()
return NULL;
}
return NULL;
}
+void Scheduler::set_scheduler_thread(thread_id_t tid) {
+ curr_thread_index=id_to_int(tid);
+}
+
/**
* @brief Set the current "running" Thread
* @param t Thread to run
/**
* @brief Set the current "running" Thread
* @param t Thread to run
@@
-215,7
+219,7
@@
void Scheduler::set_current_thread(Thread *t)
{
ASSERT(t && !t->is_model_thread());
{
ASSERT(t && !t->is_model_thread());
- curr_thread_index = id_to_int(t->get_id());
+
//
curr_thread_index = id_to_int(t->get_id());
current = t;
if (DBG_ENABLED())
current = t;
if (DBG_ENABLED())