Lines Matching refs:old_state_and_flags

78   union StateAndFlags old_state_and_flags;  in SetState()  local
79 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in SetState()
81 return static_cast<ThreadState>(old_state_and_flags.as_struct.state); in SetState()
115 union StateAndFlags old_state_and_flags; in TransitionFromRunnableToSuspended() local
118 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromRunnableToSuspended()
119 if (UNLIKELY((old_state_and_flags.as_struct.flags & kCheckpointRequest) != 0)) { in TransitionFromRunnableToSuspended()
124 DCHECK_EQ((old_state_and_flags.as_struct.flags & kCheckpointRequest), 0); in TransitionFromRunnableToSuspended()
125 new_state_and_flags.as_struct.flags = old_state_and_flags.as_struct.flags; in TransitionFromRunnableToSuspended()
130 tls32_.state_and_flags.as_atomic_int.CompareExchangeWeakRelaxed(old_state_and_flags.as_int, in TransitionFromRunnableToSuspended()
142 union StateAndFlags old_state_and_flags; in TransitionFromSuspendedToRunnable() local
143 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
144 int16_t old_state = old_state_and_flags.as_struct.state; in TransitionFromSuspendedToRunnable()
148 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
149 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
150 if (UNLIKELY((old_state_and_flags.as_struct.flags & kSuspendRequest) != 0)) { in TransitionFromSuspendedToRunnable()
153 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
154 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
155 while ((old_state_and_flags.as_struct.flags & kSuspendRequest) != 0) { in TransitionFromSuspendedToRunnable()
158 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
159 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
166 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
167 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
168 if (LIKELY((old_state_and_flags.as_struct.flags & kSuspendRequest) == 0)) { in TransitionFromSuspendedToRunnable()
170 new_state_and_flags.as_int = old_state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
174 … tls32_.state_and_flags.as_atomic_int.CompareExchangeWeakRelaxed(old_state_and_flags.as_int, in TransitionFromSuspendedToRunnable()