projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add functions to SnapList plus tabbing
[c11tester.git]
/
fuzzer.h
diff --git
a/fuzzer.h
b/fuzzer.h
index eb6fd4ef35d7d2c05f5838829fac89962f8c23fe..d31c22673a4aab928a614075490e79b1362dd9cf 100644
(file)
--- a/
fuzzer.h
+++ b/
fuzzer.h
@@
-3,16
+3,23
@@
#include "classlist.h"
#include "mymemory.h"
#include "stl-model.h"
#include "classlist.h"
#include "mymemory.h"
#include "stl-model.h"
+#include "threads-model.h"
class Fuzzer {
public:
Fuzzer() {}
virtual int selectWrite(ModelAction *read, SnapVector<ModelAction *>* rf_set);
class Fuzzer {
public:
Fuzzer() {}
virtual int selectWrite(ModelAction *read, SnapVector<ModelAction *>* rf_set);
- Thread * selectThread(int * threadlist, int numthreads);
+ 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);
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;
+ virtual Predicate * get_selected_child_branch(thread_id_t tid) = 0;
+ SNAPSHOTALLOC
private:
};
#endif
private:
};
#endif