add sleep support
[c11tester.git] / fuzzer.h
index 14d875d7827a2cf64c86f4abcf6838d56d7c00e9..e794d225b70c15d5e8954ab9fed034e37f168d96 100644 (file)
--- a/fuzzer.h
+++ b/fuzzer.h
@@ -6,11 +6,13 @@
 
 class Fuzzer {
 public:
-  Fuzzer() {}
-  ModelAction * selectWrite(ModelAction *read, ModelVector<ModelAction *>* rf_set);
-  Thread * selectThread(Node *n, int * threadlist, int numthreads);
-  Thread * selectNotify(action_list_t * waiters);
-  MEMALLOC
+       Fuzzer() {}
+       int selectWrite(ModelAction *read, SnapVector<ModelAction *>* rf_set);
+       Thread * selectThread(int * threadlist, int numthreads);
+       Thread * selectNotify(action_list_t * waiters);
+       bool shouldSleep(const ModelAction *sleep);
+       bool shouldWake(const ModelAction *sleep);
+       MEMALLOC
 private:
 };
 #endif