2007-05-09 Jonathan Chambers <joncham@gmail.com>
commitce03a1df38b617026be22db03db4a69b88d4c2ea
authorjoncham <joncham@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Wed, 9 May 2007 18:33:35 +0000 (9 18:33 +0000)
committerjoncham <joncham@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Wed, 9 May 2007 18:33:35 +0000 (9 18:33 +0000)
tree153ad9d1380530b79e5884eaec3e796a9cf72bf3
parent5688cbb72ab0eb383f5b285c57a1d73d51a8f4f2
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
mono/metadata/ChangeLog
mono/metadata/object-internals.h
mono/metadata/object.c
mono/metadata/threads-types.h
mono/metadata/threads.c