Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
3121b204
Commit
3121b204
authored
Oct 25, 2017
by
Gennadiy Civil
Committed by
GitHub
Oct 25, 2017
Browse files
Merge pull request #1304 from m-gupta/gtestapifix
googletest: Add GTEST_API_ attribute to ThreadLocal class.
parents
e93a15c5
060783b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
googletest/include/gtest/internal/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) {
// Implements thread-local storage on pthreads-based systems.
template
<
typename
T
>
class
ThreadLocal
{
class
GTEST_API_
ThreadLocal
{
public:
ThreadLocal
()
:
key_
(
CreateKey
()),
default_factory_
(
new
DefaultValueHolderFactory
())
{}
...
...
@@ -2198,7 +2198,7 @@ class GTestMutexLock {
typedef
GTestMutexLock
MutexLock
;
template
<
typename
T
>
class
ThreadLocal
{
class
GTEST_API_
ThreadLocal
{
public:
ThreadLocal
()
:
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