[threading] Introduce mono_thread_test_and_set_state to manipulate thread state.
commitcfeda495ea6890eb69298170006bc40a74219658
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 1 Sep 2016 23:47:19 +0000 (1 16:47 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 8 Sep 2016 23:08:39 +0000 (8 16:08 -0700)
treec4b2158f3c11ff7d8a931d05c9733f3b0d0f131c
parent668ee608ebba8031ea189dc050470e49499bbc63
[threading] Introduce mono_thread_test_and_set_state to manipulate thread state.

Unconditional state transitions are really bad since they don't allow threads
to coordinate between themselves.
mono/metadata/threads-types.h
mono/metadata/threads.c