[coop] Fix state transition when unregistering the thread
authorLudovic Henry <ludovic@xamarin.com>
Mon, 30 May 2016 17:16:33 +0000 (19:16 +0200)
committerLudovic Henry <ludovic@xamarin.com>
Thu, 2 Jun 2016 21:25:31 +0000 (23:25 +0200)
commitc847599f8b2be07a6a8618214b55a091f52d72ac
tree2aa503717f74b6f507a9667b8ae6836afe391a69
parente53d878fb19e0250c9aa3ba4ef00ad8a38b78144
[coop] Fix state transition when unregistering the thread

unregister_thread is the destructor for the current MonoThreadInfo* TLS key, meaning that when in this function, calling mono_thread_info_current_unchecked will always return NULL.
mono/utils/mono-threads-coop.c
mono/utils/mono-threads-coop.h
mono/utils/mono-threads.c