[threading] Fix a race during shutdown where a thread could have a suspend requested...
commitfa97bf542cdefb2e53ed7489f91177f8e2fc6b53
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 6 May 2015 20:11:41 +0000 (6 16:11 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 6 May 2015 20:11:41 +0000 (6 16:11 -0400)
tree65168c4e2b5c9228aabf331ec596d7e1279de96e
parent1aa0de2e20863c6f30fddc833b1f8fff64bdda7f
[threading] Fix a race during shutdown where a thread could have a suspend requested after it's too late for it to be served.

During thread shutdown, it gets to a point where the thread can no longer server suspend requests. To fix that
we ensure the thread gets one last suspend opportunity before going down.
mono/utils/mono-threads.c