• Home
  • Raw
  • Download

Lines Matching refs:old_state_and_flags

113   union StateAndFlags old_state_and_flags;  in SetState()  local
114 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in SetState()
115 CHECK_NE(old_state_and_flags.as_struct.state, kRunnable); in SetState()
117 return static_cast<ThreadState>(old_state_and_flags.as_struct.state); in SetState()
184 union StateAndFlags old_state_and_flags; in TransitionToSuspendedAndRunCheckpoints() local
187 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionToSuspendedAndRunCheckpoints()
188 if (UNLIKELY((old_state_and_flags.as_struct.flags & kCheckpointRequest) != 0)) { in TransitionToSuspendedAndRunCheckpoints()
192 if (UNLIKELY((old_state_and_flags.as_struct.flags & kEmptyCheckpointRequest) != 0)) { in TransitionToSuspendedAndRunCheckpoints()
197 DCHECK_EQ((old_state_and_flags.as_struct.flags & kCheckpointRequest), 0); in TransitionToSuspendedAndRunCheckpoints()
198 DCHECK_EQ((old_state_and_flags.as_struct.flags & kEmptyCheckpointRequest), 0); in TransitionToSuspendedAndRunCheckpoints()
199 new_state_and_flags.as_struct.flags = old_state_and_flags.as_struct.flags; in TransitionToSuspendedAndRunCheckpoints()
204 tls32_.state_and_flags.as_atomic_int.CompareAndSetWeakRelease(old_state_and_flags.as_int, in TransitionToSuspendedAndRunCheckpoints()
240 union StateAndFlags old_state_and_flags; in TransitionFromSuspendedToRunnable() local
241 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
242 int16_t old_state = old_state_and_flags.as_struct.state; in TransitionFromSuspendedToRunnable()
246 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
247 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
248 if (LIKELY(old_state_and_flags.as_struct.flags == 0)) { in TransitionFromSuspendedToRunnable()
252 new_state_and_flags.as_int = old_state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
256 old_state_and_flags.as_int, in TransitionFromSuspendedToRunnable()
262 } else if ((old_state_and_flags.as_struct.flags & kActiveSuspendBarrier) != 0) { in TransitionFromSuspendedToRunnable()
264 } else if ((old_state_and_flags.as_struct.flags & in TransitionFromSuspendedToRunnable()
268 << " flags=" << old_state_and_flags.as_struct.flags in TransitionFromSuspendedToRunnable()
269 << " state=" << old_state_and_flags.as_struct.state; in TransitionFromSuspendedToRunnable()
270 } else if ((old_state_and_flags.as_struct.flags & kSuspendRequest) != 0) { in TransitionFromSuspendedToRunnable()
284 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
285 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
286 while ((old_state_and_flags.as_struct.flags & kSuspendRequest) != 0) { in TransitionFromSuspendedToRunnable()
289 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
290 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()