Lines Matching refs:ThreadEntry
28 ThreadEntry* ThreadEntry::list_ = nullptr;
29 pthread_mutex_t ThreadEntry::list_mutex_ = PTHREAD_MUTEX_INITIALIZER;
33 ThreadEntry::ThreadEntry(pid_t pid, pid_t tid) in ThreadEntry() function in ThreadEntry
36 next_(ThreadEntry::list_), prev_(nullptr) { in ThreadEntry()
43 if (ThreadEntry::list_) { in ThreadEntry()
44 ThreadEntry::list_->prev_ = this; in ThreadEntry()
46 ThreadEntry::list_ = this; in ThreadEntry()
49 ThreadEntry* ThreadEntry::Get(pid_t pid, pid_t tid, bool create) { in Get()
50 pthread_mutex_lock(&ThreadEntry::list_mutex_); in Get()
51 ThreadEntry* entry = list_; in Get()
61 entry = new ThreadEntry(pid, tid); in Get()
66 pthread_mutex_unlock(&ThreadEntry::list_mutex_); in Get()
71 void ThreadEntry::Remove(ThreadEntry* entry) { in Remove()
74 pthread_mutex_lock(&ThreadEntry::list_mutex_); in Remove()
78 pthread_mutex_unlock(&ThreadEntry::list_mutex_); in Remove()
83 ThreadEntry::~ThreadEntry() { in ~ThreadEntry()
99 bool ThreadEntry::Wait(int value) { in Wait()
119 void ThreadEntry::Wake() { in Wake()
127 void ThreadEntry::CopyUcontextFromSigcontext(void* sigcontext) { in CopyUcontextFromSigcontext()