[coop] Add high level suspend policy accessors (#12116)
commit32074d1698ae63ddca602a482dd44375559e192f
authorAleksey Kliger (λgeek) <akliger@gmail.com>
Fri, 4 Jan 2019 16:36:05 +0000 (4 11:36 -0500)
committerGitHub <noreply@github.com>
Fri, 4 Jan 2019 16:36:05 +0000 (4 11:36 -0500)
tree656a78b1560ac17242044cb9ec736761188ceec7
parentf562e59d98d8ee6200be2083945947391303b25e
[coop] Add high level suspend policy accessors (#12116)

- mono_threads_suspend_policy_name
- mono_threads_suspend_policy_are_safepoints_enabled
- mono_threads_suspend_policy_is_multiphase_stw_enabled
- mono_threads_suspend_policy_is_blocking_transition_enabled

The normal accessors (mono_threads_are_safepoints_enabled, etc) just apply the
policy acessors to the current policy
mono/mini/driver.c
mono/utils/mono-state.c
mono/utils/mono-threads-coop.c
mono/utils/mono-threads-coop.h