Lines Matching defs:ThreadId
213 class ThreadId {
215 // Creates an invalid ThreadId.
216 ThreadId() { base::NoBarrier_Store(&id_, kInvalidId); }
218 ThreadId& operator=(const ThreadId& other) {
223 // Returns ThreadId for current thread.
224 static ThreadId Current() { return ThreadId(GetCurrentThreadId()); }
226 // Returns invalid ThreadId (guaranteed not to be equal to any thread).
227 static ThreadId Invalid() { return ThreadId(kInvalidId); }
230 INLINE(bool Equals(const ThreadId& other) const) {
234 // Checks whether this ThreadId refers to any thread.
239 // Converts ThreadId to an integer representation
243 // Converts ThreadId to an integer representation
245 static ThreadId FromInteger(int id) { return ThreadId(id); }
250 explicit ThreadId(int id) { base::NoBarrier_Store(&id_, id); }
306 ThreadId thread_id_;
448 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id)
460 ThreadId thread_id() const { return thread_id_; }
469 bool Matches(Isolate* isolate, ThreadId thread_id) const {
475 ThreadId thread_id_;
548 PerIsolateThreadData* FindPerThreadDataForThread(ThreadId thread_id);
581 THREAD_LOCAL_TOP_ACCESSOR(ThreadId, thread_id)
1267 PerIsolateThreadData* Lookup(Isolate* isolate, ThreadId thread_id);
1539 friend class ThreadId;