[threads] Implement hybrid cooperative suspend
commitb9be955509a94e10efba57fd86beca50753cd183
authorAleksey Kliger <alklig@microsoft.com>
Mon, 9 Apr 2018 18:31:39 +0000 (9 14:31 -0400)
committerAleksey Kliger <alklig@microsoft.com>
Tue, 10 Apr 2018 17:23:35 +0000 (10 13:23 -0400)
tree079da8c158c8680c6fa3a479548e781f27e11508
parent37613bce946d06eb0759d4d0f0f3e4d9db43c96b
[threads] Implement hybrid cooperative suspend

If a thread in blocking mode needs to be suspended, suspend it using preemptive suspend.
mono/metadata/mono-hash.c
mono/metadata/threads.c
mono/utils/mono-threads-coop.c
mono/utils/mono-threads.c