threads: assert THREAD_COMPLETED is immutable
[c11tester.git] / threads-model.h
index 9a4d959ddd8d380c2562d624b97fc8059f315444..344d58badada9f13297a149c220c0f33d505238a 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; }