unsigned int hash=(unsigned int) this->type;
hash^=((unsigned int)this->order)<<3;
hash^=seq_number<<5;
- hash^=tid<<6;
+ hash ^= id_to_int(tid) << 6;
if (is_read()) {
if (reads_from)
if (prevfi) {
*fi=*prevfi;
}
- if (parent->is_enabled(i)) {
+ if (parent->is_enabled(int_to_id(i))) {
fi->enabled_count++;
}
if (i==currtid) {
}
//Do window processing
if (prevfairness != NULL) {
- if (prevfairness -> parent->is_enabled(i))
+ if (prevfairness -> parent->is_enabled(int_to_id(i)))
fi->enabled_count--;
if (i==prevtid) {
fi->turns--;
thread_id_t curr_tid=int_to_id(curr_thread_index);
if (enabled[curr_thread_index]==THREAD_ENABLED&&
(!have_enabled_thread_with_priority||n->has_priority(curr_tid))) {
- t = model->get_thread(int_to_id(curr_tid));
+ t = model->get_thread(curr_tid);
break;
}
if (curr_thread_index == old_curr_thread) {