Lines Matching refs:Thread

46 class Thread;  variable
73 static ObjPtr<mirror::Object> MonitorEnter(Thread* thread,
82 static bool MonitorExit(Thread* thread, ObjPtr<mirror::Object> obj)
88 static void Notify(Thread* self, ObjPtr<mirror::Object> obj) in Notify()
92 static void NotifyAll(Thread* self, ObjPtr<mirror::Object> obj) in NotifyAll()
99 static void Wait(Thread* self,
106 static ThreadState FetchState(const Thread* thread,
113 static ObjPtr<mirror::Object> GetContendedMonitor(Thread* thread)
134 Thread* GetOwner() const { in GetOwner()
152 static void InflateThinLocked(Thread* self, Handle<mirror::Object> obj, LockWord lock_word,
158 static bool Deflate(Thread* self, ObjPtr<mirror::Object> obj)
176 Monitor(Thread* self, Thread* owner, ObjPtr<mirror::Object> obj, int32_t hash_code)
178 Monitor(Thread* self, Thread* owner, ObjPtr<mirror::Object> obj, int32_t hash_code, MonitorId id)
183 bool Install(Thread* self)
189 void AppendToWaitSet(Thread* thread) REQUIRES(monitor_lock_);
193 void RemoveFromWaitSet(Thread* thread) REQUIRES(monitor_lock_);
198 void SignalWaiterAndReleaseMonitorLock(Thread* self) RELEASE(monitor_lock_);
204 static void Inflate(Thread* self, Thread* owner, ObjPtr<mirror::Object> obj, int32_t hash_code)
208 void LogContentionEvent(Thread* self,
224 bool TryLock(Thread* self, bool spin = false)
229 void Lock(Thread* self)
233 bool Unlock(Thread* thread)
237 static void DoNotify(Thread* self, ObjPtr<mirror::Object> obj, bool notify_all)
240 void Notify(Thread* self)
244 void NotifyAll(Thread* self)
274 void Wait(Thread* self, int64_t msec, int32_t nsec, bool interruptShouldThrow, ThreadState why)
289 void SetLockingMethod(Thread* owner) REQUIRES(monitor_lock_)
293 void SetLockingMethodNoProxy(Thread* owner) REQUIRES(monitor_lock_)
297 ALWAYS_INLINE static void AtraceMonitorLock(Thread* self,
301 static void AtraceMonitorLockImpl(Thread* self,
324 std::atomic<Thread*> owner_;
337 Thread* wait_set_ GUARDED_BY(monitor_lock_);
340 Thread* wake_set_ GUARDED_BY(monitor_lock_);
377 std::atomic<Thread*> lock_owner_; // *lock_owner_ may no longer exist!
383 std::atomic<Thread*> lock_owner_request_;
386 uintptr_t LockOwnerInfoChecksum(ArtMethod* m, uint32_t dex_pc, Thread* t);
389 void SetLockOwnerInfo(ArtMethod* method, uint32_t dex_pc, Thread* t)
393 void GetLockOwnerInfo(/*out*/ArtMethod** method, /*out*/uint32_t* dex_pc, Thread* t);
413 void CheckLockOwnerRequest(Thread* self)
473 Thread* owner_;
475 std::vector<Thread*> waiters_;