2007-05-09 Jonathan Chambers <joncham@gmail.com>
* threads.c: Initialize Thread.AprtmentState and set on Thread.Start
in start_wrapper. Added mono_thread_init_apartment_state and
mono_thread_cleanup_apartment_state.
* object.c: Initialize thread apartment state on main thread
by checking for STAThreadAttribute on entry point.
* object-internals.h: Add apartment_state field to MonoThread.
* threads-types.h: Add unmanaged definition of
System.Threading.ApartmentState, MonoThreadApartmentState.
Code is contributed under MIT/X11 license.
git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mono@77077 e3ebcda4-bce8-0310-ba0a-eca2169e7518