Searched refs:state_and_flags (Results 1 – 4 of 4) sorted by relevance
/art/runtime/ |
D | thread-inl.h | 114 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in SetState() 116 tls32_.state_and_flags.as_struct.state = new_state; in SetState() 187 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionToSuspendedAndRunCheckpoints() 204 tls32_.state_and_flags.as_atomic_int.CompareAndSetWeakRelease(old_state_and_flags.as_int, in TransitionToSuspendedAndRunCheckpoints() 214 uint16_t current_flags = tls32_.state_and_flags.as_struct.flags; in PassActiveSuspendBarriers() 241 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable() 246 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable() 255 if (LIKELY(tls32_.state_and_flags.as_atomic_int.CompareAndSetWeakAcquire( in TransitionFromSuspendedToRunnable() 284 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable() 289 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
|
D | thread.h | 229 DCHECK_GE(tls32_.state_and_flags.as_struct.state, kTerminated); in GetState() 230 DCHECK_LE(tls32_.state_and_flags.as_struct.state, kSuspended); in GetState() 231 return static_cast<ThreadState>(tls32_.state_and_flags.as_struct.state); in GetState() 250 union StateAndFlags state_and_flags; in IsSuspended() local 251 state_and_flags.as_int = tls32_.state_and_flags.as_int; in IsSuspended() 252 return state_and_flags.as_struct.state != kRunnable && in IsSuspended() 253 (state_and_flags.as_struct.flags & kSuspendRequest) != 0; in IsSuspended() 661 OFFSETOF_MEMBER(tls_32bit_sized_values, state_and_flags)); in ThreadFlagsOffset() 1105 return (tls32_.state_and_flags.as_struct.flags & flag) != 0; in ReadFlag() 1109 return (tls32_.state_and_flags.as_struct.flags != 0); in TestAllFlags() [all …]
|
D | entrypoints_order_test.cc | 67 CHECKED(OFFSETOF_MEMBER(Thread, tls32_.state_and_flags) == 0, thread_flags_at_zero); in CheckThreadOffsets() 68 EXPECT_OFFSET_DIFFP(Thread, tls32_, state_and_flags, suspend_count, 4); in CheckThreadOffsets()
|
D | thread.cc | 1283 tls32_.state_and_flags.as_atomic_int.FetchAndBitwiseOrSequentiallyConsistent(flags); in ModifySuspendCountInternal() 1385 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in RequestCheckpoint() 1395 bool success = tls32_.state_and_flags.as_atomic_int.CompareAndSetStrongSequentiallyConsistent( in RequestCheckpoint() 1412 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in RequestEmptyCheckpoint() 1424 bool success = tls32_.state_and_flags.as_atomic_int.CompareAndSetStrongSequentiallyConsistent( in RequestEmptyCheckpoint() 1687 << " flags=" << thread->tls32_.state_and_flags.as_struct.flags in DumpState() 2107 tls32_.state_and_flags.as_struct.flags = 0; in Thread() 2108 tls32_.state_and_flags.as_struct.state = kNative; in Thread()
|