This switch block shouldn't have to be updated for every new action_type_t.
Rewrite so that we only have to worry about significant actions, like
ATOMIC_{READ,WRITE,RMW}.
action_type type = act->get_type();
switch (type) {
- case THREAD_CREATE:
- case THREAD_YIELD:
- case THREAD_JOIN:
- return NULL;
case ATOMIC_READ:
case ATOMIC_WRITE:
- default:
+ case ATOMIC_RMW:
break;
+ default:
+ return NULL;
}
/* linear search: from most recent to oldest */
action_list_t::reverse_iterator rit;