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
3121b204
Commit
3121b204
authored
Oct 25, 2017
by
Gennadiy Civil
Committed by
GitHub
Oct 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1304 from m-gupta/gtestapifix
googletest: Add GTEST_API_ attribute to ThreadLocal class.
parents
e93a15c5
060783b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+2
-2
No files found.
googletest/include/gtest/internal/gtest-port.h
View file @
3121b204
...
@@ -2066,7 +2066,7 @@ extern "C" inline void DeleteThreadLocalValue(void* value_holder) {
...
@@ -2066,7 +2066,7 @@ extern "C" inline void DeleteThreadLocalValue(void* value_holder) {
// Implements thread-local storage on pthreads-based systems.
// Implements thread-local storage on pthreads-based systems.
template
<
typename
T
>
template
<
typename
T
>
class
ThreadLocal
{
class
GTEST_API_
ThreadLocal
{
public
:
public
:
ThreadLocal
()
ThreadLocal
()
:
key_
(
CreateKey
()),
default_factory_
(
new
DefaultValueHolderFactory
())
{}
:
key_
(
CreateKey
()),
default_factory_
(
new
DefaultValueHolderFactory
())
{}
...
@@ -2198,7 +2198,7 @@ class GTestMutexLock {
...
@@ -2198,7 +2198,7 @@ class GTestMutexLock {
typedef
GTestMutexLock
MutexLock
;
typedef
GTestMutexLock
MutexLock
;
template
<
typename
T
>
template
<
typename
T
>
class
ThreadLocal
{
class
GTEST_API_
ThreadLocal
{
public
:
public
:
ThreadLocal
()
:
value_
()
{}
ThreadLocal
()
:
value_
()
{}
explicit
ThreadLocal
(
const
T
&
value
)
:
value_
(
value
)
{}
explicit
ThreadLocal
(
const
T
&
value
)
:
value_
(
value
)
{}
...
...
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