Merge pull request #3657 from BioDataAnalysis:bda_add_winerr
PiperOrigin-RevId: 408896910
This commit is contained in:
		@@ -629,7 +629,8 @@ class ThreadLocalRegistryImpl {
 | 
				
			|||||||
        &ThreadLocalRegistryImpl::WatcherThreadFunc,
 | 
					        &ThreadLocalRegistryImpl::WatcherThreadFunc,
 | 
				
			||||||
        reinterpret_cast<LPVOID>(new ThreadIdAndHandle(thread_id, thread)),
 | 
					        reinterpret_cast<LPVOID>(new ThreadIdAndHandle(thread_id, thread)),
 | 
				
			||||||
        CREATE_SUSPENDED, &watcher_thread_id);
 | 
					        CREATE_SUSPENDED, &watcher_thread_id);
 | 
				
			||||||
    GTEST_CHECK_(watcher_thread != nullptr);
 | 
					    GTEST_CHECK_(watcher_thread != nullptr)
 | 
				
			||||||
 | 
					        << "CreateThread failed with error " << ::GetLastError() << ".";
 | 
				
			||||||
    // Give the watcher thread the same priority as ours to avoid being
 | 
					    // Give the watcher thread the same priority as ours to avoid being
 | 
				
			||||||
    // blocked by it.
 | 
					    // blocked by it.
 | 
				
			||||||
    ::SetThreadPriority(watcher_thread,
 | 
					    ::SetThreadPriority(watcher_thread,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user