Thread * read_thread = execution->get_thread(tid);
model_print("the %d read action of thread %d is unsuccessful\n", read->get_seq_number(), read_thread->get_id());
+ // reset thread pending action and revert sequence numbers
read_thread->set_pending(read);
- read->reset_seq_number(); // revert some operations
+ read->reset_seq_number();
execution->restore_last_seq_num();
conditional_sleep(read_thread);
threadlist[*numthreads] = thread->get_id();
(*numthreads)++;
}
+
+bool NewFuzzer::shouldWait(const ModelAction * act)
+{
+ return random() & 1;
+}