Lines Matching defs:ThreadId
147 class ThreadId {
149 // Creates an invalid ThreadId.
150 ThreadId() : id_(kInvalidId) {}
152 // Returns ThreadId for current thread.
153 static ThreadId Current() { return ThreadId(GetCurrentThreadId()); }
155 // Returns invalid ThreadId (guaranteed not to be equal to any thread).
156 static ThreadId Invalid() { return ThreadId(kInvalidId); }
159 INLINE(bool Equals(const ThreadId& other) const) {
163 // Checks whether this ThreadId refers to any thread.
168 // Converts ThreadId to an integer representation
172 // Converts ThreadId to an integer representation
174 static ThreadId FromInteger(int id) { return ThreadId(id); }
179 explicit ThreadId(int id) : id_(id) {}
238 ThreadId thread_id_;
370 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id)
382 ThreadId thread_id() const { return thread_id_; }
396 bool Matches(Isolate* isolate, ThreadId thread_id) const {
402 ThreadId thread_id_;
531 ThreadId thread_id() { return thread_local_top_.thread_id_; }
532 void set_thread_id(ThreadId id) { thread_local_top_.thread_id_ = id; }
1048 PerIsolateThreadData* Lookup(Isolate* isolate, ThreadId thread_id);
1050 void Remove(Isolate* isolate, ThreadId thread_id);
1108 PerIsolateThreadData* AllocatePerIsolateThreadData(ThreadId thread_id);
1263 friend class ThreadId;