Merge pull request #1304 from m-gupta/gtestapifix
googletest: Add GTEST_API_ attribute to ThreadLocal class.
This commit is contained in:
commit
3121b2049e
@ -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 {
|
|||||||
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) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user