Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
af71b660
Commit
af71b660
authored
Nov 22, 2019
by
Gennadiy Civil
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2570 from xieyubo:1.10
PiperOrigin-RevId: 281971090
parents
717ce7fe
dcdb6506
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
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 {
...
@@ -537,6 +537,9 @@ class ThreadLocalRegistryImpl {
// Returns a value that can be used to identify the thread from other threads.
// Returns a value that can be used to identify the thread from other threads.
static
ThreadLocalValueHolderBase
*
GetValueOnCurrentThread
(
static
ThreadLocalValueHolderBase
*
GetValueOnCurrentThread
(
const
ThreadLocalBase
*
thread_local_instance
)
{
const
ThreadLocalBase
*
thread_local_instance
)
{
#ifdef _MSC_VER
MemoryIsNotDeallocated
memory_is_not_deallocated
;
#endif // _MSC_VER
DWORD
current_thread
=
::
GetCurrentThreadId
();
DWORD
current_thread
=
::
GetCurrentThreadId
();
MutexLock
lock
(
&
mutex_
);
MutexLock
lock
(
&
mutex_
);
ThreadIdToThreadLocals
*
const
thread_to_thread_locals
=
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