remove #include <list>
[model-checker.git] / threads-model.h
index 9a4d959ddd8d380c2562d624b97fc8059f315444..02362100dca410b35f531ef536e2066f85315890 100644 (file)
@@ -44,7 +44,7 @@ public:
        static int swap(Thread *t, ucontext_t *ctxt);
 
        thread_state get_state() const { return state; }
-       void set_state(thread_state s) { state = s; }
+       void set_state(thread_state s);
        thread_id_t get_id() const;
        thrd_t get_thrd_t() const { return *user_thread; }
        Thread * get_parent() const { return parent; }
@@ -148,7 +148,7 @@ Thread * thread_current();
 
 static inline thread_id_t thrd_to_id(thrd_t t)
 {
-       return t;
+       return t.priv->get_id();
 }
 
 /**