Index: src/libcfa/concurrency/threads
===================================================================
--- src/libcfa/concurrency/threads	(revision c84e80aa83b9917829e6f5f923487d8ece403218)
+++ src/libcfa/concurrency/threads	(revision 8f49a54ffd2ebee0164eb91c530d7625a9d1f910)
@@ -33,4 +33,6 @@
 	void ^?{}(T*);*/
 };
+
+#define DECL_THREAD(X) static inline thread_h* get_thread(X* this) { return &this->t; } void main(X* this);
 
 forall(otype T | is_thread(T) )
