For instance, printing from w/in gdb
break;
}
if (curr_thread_index == old_curr_thread) {
- print();
+ if (DBG_ENABLED())
+ print();
return NULL;
}
}
}
current = t;
- print();
+ if (DBG_ENABLED())
+ print();
return t;
}
void Scheduler::print() const
{
if (current)
- DEBUG("Current thread: %d\n", id_to_int(current->get_id()));
+ model_print("Current thread: %d\n", id_to_int(current->get_id()));
else
- DEBUG("No current thread\n");
+ model_print("No current thread\n");
}