X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=threads-model.h;h=02362100dca410b35f531ef536e2066f85315890;hb=699b014c94f05bc03e1966e676b35885d959ec71;hp=9a4d959ddd8d380c2562d624b97fc8059f315444;hpb=84d0cd2f078f4cb15c318a0fef2515feab570375;p=model-checker.git diff --git a/threads-model.h b/threads-model.h index 9a4d959..0236210 100644 --- a/threads-model.h +++ b/threads-model.h @@ -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(); } /**