/bionic/libc/bionic/ |
pthread_mutex.cpp | 116 /* a mutex contains a state value and a owner_tid. 125 * The owner_tid is used only in recursive and errorcheck mutex to hold the mutex owner thread tid. 222 atomic_int owner_tid; member in struct:pthread_mutex_internal_t 225 _Atomic(uint16_t) owner_tid; member in struct:pthread_mutex_internal_t 271 atomic_init(&mutex->owner_tid, 0); 401 // __futex_wait always waits on a 32-bit value. But state is 16-bit. For a normal mutex, the owner_tid 404 // owner_tid value in the value argument for __futex_wait, otherwise we may always get EAGAIN error. 413 static_assert(offsetof(pthread_mutex_internal_t, owner_tid) == 2, ""); 415 uint32_t owner_tid = atomic_load_explicit(&mutex->owner_tid, memory_order_relaxed) [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
tsan_sync.h | 35 int owner_tid; // Set only by exclusive owners. member in struct:__tsan::SyncVar
|
tsan_rtl_mutex.cc | 102 && s->owner_tid != SyncVar::kInvalidTid 153 if (s->owner_tid == SyncVar::kInvalidTid) { 155 s->owner_tid = thr->tid; 157 } else if (s->owner_tid == thr->tid) { 198 if (kCppMode && (s->recursion == 0 || s->owner_tid != thr->tid)) { 208 s->owner_tid = SyncVar::kInvalidTid; 241 if (s->owner_tid != SyncVar::kInvalidTid) { 276 if (s->owner_tid != SyncVar::kInvalidTid) { 306 if (s->owner_tid == SyncVar::kInvalidTid) { 313 } else if (s->owner_tid == thr->tid) [all...] |
tsan_sync.cc | 42 owner_tid = kInvalidTid;
|
/art/runtime/base/ |
mutex.cc | 145 ScopedContentionRecorder(BaseMutex* mutex, uint64_t blocked_tid, uint64_t owner_tid) 148 owner_tid_(kLogLockContentions ? owner_tid : 0), 152 mutex->GetName(), owner_tid); 278 uint64_t owner_tid, 288 log[slot].owner_tid == blocked_tid) { 297 log[new_slot].owner_tid = owner_tid; 319 uint64_t owner_tid = log[i].owner_tid; local 328 it = most_common_blocker.find(owner_tid); [all...] |
mutex.h | 178 void RecordContention(uint64_t blocked_tid, uint64_t owner_tid, uint64_t nano_time_blocked); 187 ContentionLogEntry() : blocked_tid(0), owner_tid(0) {} 189 uint64_t owner_tid; member in struct:art::BaseMutex::ContentionLogEntry
|
/art/runtime/ |
monitor.h | 227 pid_t owner_tid,
|
monitor.cc | 306 pid_t owner_tid, 317 oss << "monitor contention with owner " << owner_name << " (" << owner_tid << ")"; local [all...] |