Lines Matching refs:as_struct
117 CHECK_NE(old_state_and_flags.as_struct.state, kRunnable) << new_state << " " << *this << " " in SetState()
119 tls32_.state_and_flags.as_struct.state = new_state; in SetState()
120 return static_cast<ThreadState>(old_state_and_flags.as_struct.state); in SetState()
191 if (UNLIKELY((old_state_and_flags.as_struct.flags & kCheckpointRequest) != 0)) { in TransitionToSuspendedAndRunCheckpoints()
195 if (UNLIKELY((old_state_and_flags.as_struct.flags & kEmptyCheckpointRequest) != 0)) { in TransitionToSuspendedAndRunCheckpoints()
200 DCHECK_EQ((old_state_and_flags.as_struct.flags & kCheckpointRequest), 0); in TransitionToSuspendedAndRunCheckpoints()
201 DCHECK_EQ((old_state_and_flags.as_struct.flags & kEmptyCheckpointRequest), 0); in TransitionToSuspendedAndRunCheckpoints()
202 new_state_and_flags.as_struct.flags = old_state_and_flags.as_struct.flags; in TransitionToSuspendedAndRunCheckpoints()
203 new_state_and_flags.as_struct.state = new_state; in TransitionToSuspendedAndRunCheckpoints()
217 uint16_t current_flags = tls32_.state_and_flags.as_struct.flags; in PassActiveSuspendBarriers()
245 int16_t old_state = old_state_and_flags.as_struct.state; in TransitionFromSuspendedToRunnable()
250 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
251 if (LIKELY(old_state_and_flags.as_struct.flags == 0)) { in TransitionFromSuspendedToRunnable()
256 new_state_and_flags.as_struct.state = kRunnable; in TransitionFromSuspendedToRunnable()
266 } else if ((old_state_and_flags.as_struct.flags & kActiveSuspendBarrier) != 0) { in TransitionFromSuspendedToRunnable()
268 } else if ((old_state_and_flags.as_struct.flags & in TransitionFromSuspendedToRunnable()
272 << " flags=" << old_state_and_flags.as_struct.flags in TransitionFromSuspendedToRunnable()
273 << " state=" << old_state_and_flags.as_struct.state; in TransitionFromSuspendedToRunnable()
274 } else if ((old_state_and_flags.as_struct.flags & kSuspendRequest) != 0) { in TransitionFromSuspendedToRunnable()
289 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
290 while ((old_state_and_flags.as_struct.flags & kSuspendRequest) != 0) { in TransitionFromSuspendedToRunnable()
294 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()