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
af71b660
Commit
af71b660
authored
Nov 22, 2019
by
Gennadiy Civil
Browse files
Merge pull request #2570 from xieyubo:1.10
PiperOrigin-RevId: 281971090
parents
717ce7fe
dcdb6506
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
googletest/src/gtest-port.cc
googletest/src/gtest-port.cc
+3
-0
No files found.
googletest/src/gtest-port.cc
View file @
af71b660
...
...
@@ -537,6 +537,9 @@ class ThreadLocalRegistryImpl {
// Returns a value that can be used to identify the thread from other threads.
static
ThreadLocalValueHolderBase
*
GetValueOnCurrentThread
(
const
ThreadLocalBase
*
thread_local_instance
)
{
#ifdef _MSC_VER
MemoryIsNotDeallocated
memory_is_not_deallocated
;
#endif // _MSC_VER
DWORD
current_thread
=
::
GetCurrentThreadId
();
MutexLock
lock
(
&
mutex_
);
ThreadIdToThreadLocals
*
const
thread_to_thread_locals
=
...
...
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