Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
7f228847
Commit
7f228847
authored
Nov 10, 2021
by
dinord
Browse files
Merge pull request #3657 from BioDataAnalysis:bda_add_winerr
PiperOrigin-RevId: 408896910
parents
6c8a3865
e4ffd4d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
googletest/src/gtest-port.cc
googletest/src/gtest-port.cc
+2
-1
No files found.
googletest/src/gtest-port.cc
View file @
7f228847
...
@@ -629,7 +629,8 @@ class ThreadLocalRegistryImpl {
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment