Lines Matching refs:thread_
344 : thread_(Thread::Current()), in ScopedDisallowBlockingCalls()
345 previous_state_(thread_->SetAllowBlockingCalls(false)) {} in ScopedDisallowBlockingCalls()
348 RTC_DCHECK(thread_->IsCurrent()); in ~ScopedDisallowBlockingCalls()
349 thread_->SetAllowBlockingCalls(previous_state_); in ~ScopedDisallowBlockingCalls()
753 thread_ = CreateThread(nullptr, 0, PreRun, this, 0, &thread_id_); in Start()
754 if (!thread_) { in Start()
761 int error_code = pthread_create(&thread_, &attr, PreRun, this); in Start()
764 thread_ = 0; in Start()
767 RTC_DCHECK(thread_); in Start()
780 if (thread_ != nullptr) { in UnwrapCurrent()
781 if (!CloseHandle(thread_)) { in UnwrapCurrent()
785 thread_ = nullptr; in UnwrapCurrent()
789 thread_ = 0; in UnwrapCurrent()
808 RTC_DCHECK(thread_ != nullptr); in Join()
809 WaitForSingleObject(thread_, INFINITE); in Join()
810 CloseHandle(thread_); in Join()
811 thread_ = nullptr; in Join()
814 pthread_join(thread_, nullptr); in Join()
815 thread_ = 0; in Join()
1089 thread_ = OpenThread(SYNCHRONIZE, FALSE, GetCurrentThreadId()); in PreRun()
1090 if (!thread_) { in PreRun()
1097 thread_ = pthread_self(); in PreRun()
1106 return thread_ != nullptr; in PreRun()
1108 return thread_ != 0; in PreRun()