create enumeration for enabled information...switch from bools to the enumeration
[model-checker.git] / threads.h
index 9456a22f2fe4942b1004a87794fa3474eaeab26b..a379494d43bd93ee78dea0f3f0bb98dcd0af60a4 100644 (file)
--- a/threads.h
+++ b/threads.h
 
 #include "mymemory.h"
 #include "libthreads.h"
-
-typedef int thread_id_t;
-
-#define THREAD_ID_T_NONE       -1
+#include "modeltypes.h"
 
 /** @brief Represents the state of a user Thread */
 typedef enum thread_state {
@@ -84,6 +81,14 @@ public:
         */
        void push_wait_list(ModelAction *act) { wait_list.push_back(act); }
 
+       unsigned int num_wait_list() {
+               return wait_list.size();
+       }
+
+       ModelAction * get_waiter(unsigned int i) {
+               return wait_list[i];
+       }
+
        ModelAction * get_pending() { return pending; }
        void set_pending(ModelAction *act) { pending = act; }
        /**