[threading] Add a global variable that is set while a global suspend is hapening.
commit207b1fa616910e24ff77f4bfd42d1b623b4ca535
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 16 Apr 2015 23:01:13 +0000 (16 19:01 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 17 Apr 2015 19:20:53 +0000 (17 15:20 -0400)
tree0d262dc25b0226599972b3d6156e9cf6d19a354f
parent8de00a141d127352e2af3dba91dd1860791e05ba
[threading] Add a global variable that is set while a global suspend is hapening.

This global var is meant to be used by JIT'd code to efficiently implement polling.
mono/utils/mono-threads-coop.c
mono/utils/mono-threads-coop.h
mono/utils/mono-threads-posix.c
mono/utils/mono-threads-windows.c
mono/utils/mono-threads.c
mono/utils/mono-threads.h