Lines Matching refs:thread_
129 : thread_(Thread::Current()),
130 previous_state_(thread_->SetAllowBlockingCalls(false)) {
134 ASSERT(thread_->IsCurrent());
135 thread_->SetAllowBlockingCalls(previous_state_);
143 thread_(NULL),
191 ASSERT(thread_ != NULL);
194 ret = ::SetThreadPriority(thread_, THREAD_PRIORITY_NORMAL);
196 ret = ::SetThreadPriority(thread_, THREAD_PRIORITY_HIGHEST);
198 ret = ::SetThreadPriority(thread_, THREAD_PRIORITY_ABOVE_NORMAL);
200 ret = ::SetThreadPriority(thread_, THREAD_PRIORITY_IDLE);
236 thread_ = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)PreRun, init, flags,
238 if (thread_) {
242 ::ResumeThread(thread_);
282 int error_code = pthread_create(&thread_, &attr, PreRun, init);
300 if (thread_ != NULL) {
301 if (!CloseHandle(thread_)) {
304 thread_ = NULL;
320 ASSERT(thread_ != NULL);
321 WaitForSingleObject(thread_, INFINITE);
322 CloseHandle(thread_);
323 thread_ = NULL;
327 pthread_join(thread_, &pv);
581 thread_ = OpenThread(SYNCHRONIZE, FALSE, GetCurrentThreadId());
582 if (!thread_) {
589 thread_ = pthread_self();