On windows, Register/unregister runtime-managed threads from our wrapper.
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 25 Apr 2013 18:49:45 +0000 (14:49 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 25 Apr 2013 19:56:45 +0000 (15:56 -0400)
commit830f402047d4ca30b0b7c704367af5ada3dd2356
treebf69b23438a3e41af28b7fd890c9f7cd0ea68c2d
parent42970c12994f84ed6828f0e08c6fffe13e11d492
On windows, Register/unregister runtime-managed threads from our wrapper.

* driver.c: Don't auto attach all threads, this is the same behavior of
posix and mach. We still auto-detach so we can catch foreign threads that
forgot to do it.

* mono-threads-windows.c: Detach the thread after the thread fun has run to
completion, this ensures we cleanup runtime-managed threads in a saner fashion.
mono/mini/driver.c
mono/utils/mono-threads-windows.c