#ifndef INCLUDED_cpp_vm_Thread
#define INCLUDED_cpp_vm_Thread

#ifndef HXCPP_H
#include <hxcpp.h>
#endif

HX_DECLARE_CLASS2(cpp,vm,Thread)
namespace cpp{
namespace vm{


class HXCPP_CLASS_ATTRIBUTES  Thread_obj : public hx::Object{
	public:
		typedef hx::Object super;
		typedef Thread_obj OBJ_;
		Thread_obj();
		Void __construct(Dynamic h);

	public:
		inline void *operator new( size_t inSize, bool inContainer=true)
			{ return hx::Object::operator new(inSize,inContainer); }
		static hx::ObjectPtr< Thread_obj > __new(Dynamic h);
		static Dynamic __CreateEmpty();
		static Dynamic __Create(hx::DynamicArray inArgs);
		//~Thread_obj();

		HX_DO_RTTI;
		static void __boot();
		static void __register();
		void __Mark(HX_MARK_PARAMS);
		void __Visit(HX_VISIT_PARAMS);
		::String __ToString() const { return HX_CSTRING("Thread"); }

		Dynamic handle;
		static ::cpp::vm::Thread current( );
		static Dynamic current_dyn();

		static Dynamic readMessage( bool block);
		static Dynamic readMessage_dyn();

};

} // end namespace cpp
} // end namespace vm

#endif /* INCLUDED_cpp_vm_Thread */ 
