[threads] Make mono_thread_info_get_suspend_state suspend policy aware
commitd1895b67d48b174ece85217d6c6699c5c6127fff
authorAleksey Kliger <alklig@microsoft.com>
Tue, 10 Apr 2018 21:38:11 +0000 (10 17:38 -0400)
committerAleksey Kliger <alklig@microsoft.com>
Tue, 10 Apr 2018 21:38:11 +0000 (10 17:38 -0400)
treecdb1cfa498e65b361e5c65884ed92284eaceb268
parent7e728dcdbdaff99617632c3f8787459e0d430f3c
[threads] Make mono_thread_info_get_suspend_state suspend policy aware

Move it from mono-threads-state-machine.c to mono-threads.c and make it
check how blocking threads are suspended before returning the saved state.
mono/utils/mono-threads-state-machine.c
mono/utils/mono-threads.c