/**
* @brief Check if a Thread is currently in the sleep set
* @param t The Thread to check
- * @return True if the Thread is currently enabled
*/
bool Scheduler::is_sleep_set(const Thread *t) const
{
/**
* Add a Thread to the sleep set.
* @param t The Thread to add
+ * A Thread is in THREAD_SLEEP_SET if it is sleeping or blocked by a wait
+ * operation that should fail spuriously (decide by fuzzer).
*/
void Scheduler::add_sleep(Thread *t)
{
thread = execution->getFuzzer()->selectThread(thread_list, avail_threads);
}
- curr_thread_index = id_to_int(thread->get_id());
+ //curr_thread_index = id_to_int(thread->get_id());
return thread;
}