Searched refs:state_and_flags (Results 1 – 4 of 4) sorted by relevance
/art/runtime/ |
D | thread-inl.h | 116 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in SetState() 119 tls32_.state_and_flags.as_struct.state = new_state; in SetState() 190 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionToSuspendedAndRunCheckpoints() 207 tls32_.state_and_flags.as_atomic_int.CompareAndSetWeakRelease(old_state_and_flags.as_int, in TransitionToSuspendedAndRunCheckpoints() 217 uint16_t current_flags = tls32_.state_and_flags.as_struct.flags; in PassActiveSuspendBarriers() 244 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable() 249 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable() 259 if (LIKELY(tls32_.state_and_flags.as_atomic_int.CompareAndSetWeakAcquire( in TransitionFromSuspendedToRunnable() 288 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable() 293 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in TransitionFromSuspendedToRunnable()
|
D | thread.h | 238 DCHECK_GE(tls32_.state_and_flags.as_struct.state, kTerminated); in GetState() 239 DCHECK_LE(tls32_.state_and_flags.as_struct.state, kSuspended); in GetState() 240 return static_cast<ThreadState>(tls32_.state_and_flags.as_struct.state); in GetState() 255 union StateAndFlags state_and_flags; in IsSuspended() local 256 state_and_flags.as_int = tls32_.state_and_flags.as_int; in IsSuspended() 257 return state_and_flags.as_struct.state != kRunnable && in IsSuspended() 258 (state_and_flags.as_struct.flags & kSuspendRequest) != 0; in IsSuspended() 690 OFFSETOF_MEMBER(tls_32bit_sized_values, state_and_flags)); in ThreadFlagsOffset() 1122 return (tls32_.state_and_flags.as_struct.flags & flag) != 0; in ReadFlag() 1126 return (tls32_.state_and_flags.as_struct.flags != 0); in TestAllFlags() [all …]
|
D | entrypoints_order_test.cc | 65 CHECKED(OFFSETOF_MEMBER(Thread, tls32_.state_and_flags) == 0, thread_flags_at_zero); in CheckThreadOffsets() 66 EXPECT_OFFSET_DIFFP(Thread, tls32_, state_and_flags, suspend_count, 4); in CheckThreadOffsets()
|
D | thread.cc | 1472 tls32_.state_and_flags.as_atomic_int.fetch_or(flags, std::memory_order_seq_cst); in ModifySuspendCountInternal() 1574 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in RequestCheckpoint() 1584 bool success = tls32_.state_and_flags.as_atomic_int.CompareAndSetStrongSequentiallyConsistent( in RequestCheckpoint() 1601 old_state_and_flags.as_int = tls32_.state_and_flags.as_int; in RequestEmptyCheckpoint() 1613 bool success = tls32_.state_and_flags.as_atomic_int.CompareAndSetStrongSequentiallyConsistent( in RequestEmptyCheckpoint() 1880 << " flags=" << thread->tls32_.state_and_flags.as_struct.flags in DumpState() 2301 tls32_.state_and_flags.as_struct.flags = 0; in Thread() 2302 tls32_.state_and_flags.as_struct.state = kNative; in Thread()
|