Some edits
[c11tester.git] / fuzzer.h
index e794d225b70c15d5e8954ab9fed034e37f168d96..c5248d726310b8bab5db32b80e0fccc2bbd0556a 100644 (file)
--- a/fuzzer.h
+++ b/fuzzer.h
@@ -3,16 +3,22 @@
 #include "classlist.h"
 #include "mymemory.h"
 #include "stl-model.h"
+#include "threads-model.h"
 
 class Fuzzer {
 public:
        Fuzzer() {}
-       int selectWrite(ModelAction *read, SnapVector<ModelAction *>* rf_set);
-       Thread * selectThread(int * threadlist, int numthreads);
+       virtual int selectWrite(ModelAction *read, SnapVector<ModelAction *>* rf_set);
+       virtual bool has_paused_threads() { return false; }
+       virtual void notify_paused_thread(Thread * thread) = 0;
+       virtual Thread * selectThread(int * threadlist, int numthreads);
+
        Thread * selectNotify(action_list_t * waiters);
        bool shouldSleep(const ModelAction *sleep);
        bool shouldWake(const ModelAction *sleep);
-       MEMALLOC
+       virtual bool shouldWait(const ModelAction *wait) = 0;
+       virtual void register_engine(ModelHistory * history, ModelExecution * execution) = 0;
+       SNAPSHOTALLOC
 private:
 };
 #endif