threads: change thrd_t to store Thread pointer
[c11tester.git] / threads-model.h
index 344d58badada9f13297a149c220c0f33d505238a..02362100dca410b35f531ef536e2066f85315890 100644 (file)
@@ -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();
 }
 
 /**