Unregister runtime-managed threads before OS cleanup kicks in.
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 25 Apr 2013 18:49:13 +0000 (14:49 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 25 Apr 2013 19:56:45 +0000 (15:56 -0400)
commit42970c12994f84ed6828f0e08c6fffe13e11d492
tree435550ecad7e6ba9c2095356763a99998ee82c67
parent65aa1e504853612485c8ff1a2a4024488f1d86c1
Unregister runtime-managed threads before OS cleanup kicks in.

* mono-threads.c:
* mono-threads-posix.c: Explicitly detach a thread from the wrapper
instead of relying on the TLS destructor. This gives a good environment
most of the time for other parts of the runtime to work with.
mono/utils/mono-threads-posix.c
mono/utils/mono-threads.c