partial conversion to fuzzer
[c11tester.git] / schedule.h
index 4c67c28492b9cc24facc2e43827eee2ca198f28d..4269c4deaf0efdf33aa3edd04c75e848497ef776 100644 (file)
@@ -11,6 +11,7 @@
 /* Forward declaration */
 class Thread;
 class Node;
+class ModelExecution;
 
 typedef enum enabled_type {
        THREAD_DISABLED,
@@ -25,6 +26,8 @@ void enabled_type_to_string(enabled_type_t e, char *str);
 class Scheduler {
 public:
        Scheduler();
+       void register_engine(ModelExecution *execution);
+
        void add_thread(Thread *t);
        void remove_thread(Thread *t);
        void sleep(Thread *t);
@@ -37,7 +40,6 @@ public:
        void remove_sleep(Thread *t);
        void add_sleep(Thread *t);
        enabled_type_t get_enabled(const Thread *t) const;
-       void update_sleep_set(Node *n);
        bool is_enabled(const Thread *t) const;
        bool is_enabled(thread_id_t tid) const;
        bool is_sleep_set(const Thread *t) const;
@@ -46,6 +48,7 @@ public:
 
        SNAPSHOTALLOC
 private:
+       ModelExecution *execution;
        /** The list of available Threads that are not currently running */
        enabled_type_t *enabled;
        int enabled_len;