Lines Matching refs:thread_
102 thread_(NULL) { in PlatformThread()
105 thread_(0) { in PlatformThread()
114 RTC_DCHECK(!thread_); in PlatformThread()
132 RTC_DCHECK(!thread_) << "Thread already started?"; in PlatformThread()
140 thread_ = ::CreateThread(NULL, 1024 * 1024, &StartThread, this, in PlatformThread()
142 RTC_CHECK(thread_) << "CreateThread failed"; in PlatformThread()
147 RTC_CHECK_EQ(0, pthread_create(&thread_, &attr, &StartThread, this)); in PlatformThread()
154 return thread_ != nullptr; in PlatformThread()
156 return thread_ != 0; in PlatformThread()
167 QueueUserAPC(&RaiseFlag, thread_, reinterpret_cast<ULONG_PTR>(&stop_)); in PlatformThread()
168 WaitForSingleObject(thread_, INFINITE); in PlatformThread()
169 CloseHandle(thread_); in PlatformThread()
170 thread_ = nullptr; in PlatformThread()
173 RTC_CHECK_EQ(0, pthread_join(thread_, nullptr)); in PlatformThread()
174 thread_ = 0; in PlatformThread()
200 return SetThreadPriority(thread_, priority) != FALSE; in SetPriority()
246 return pthread_setschedparam(thread_, policy, ¶m) == 0; in SetPriority()