aboutsummaryrefslogtreecommitdiff
path: root/dep/include/zthread/ThreadLocalImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'dep/include/zthread/ThreadLocalImpl.h')
-rw-r--r--dep/include/zthread/ThreadLocalImpl.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/dep/include/zthread/ThreadLocalImpl.h b/dep/include/zthread/ThreadLocalImpl.h
index 3b4046f8f58..be000dfa695 100644
--- a/dep/include/zthread/ThreadLocalImpl.h
+++ b/dep/include/zthread/ThreadLocalImpl.h
@@ -35,7 +35,7 @@ namespace ZThread {
*
* @see ThreadLocal
*/
- class ZTHREAD_API ThreadLocalImpl : private NonCopyable {
+ class ZTHREAD_API ThreadLocalImpl : private NonCopyable {
public:
class Value;
@@ -52,17 +52,17 @@ namespace ZThread {
//! Create a ThreadLocalImpl
ThreadLocalImpl();
-
+
//! Destroy a ThreadLocalImpl
~ThreadLocalImpl();
-
+
/**
* @class InitialValueFn
*/
template <typename T>
- struct InitialValueFn {
+ struct InitialValueFn {
T operator()() { return T(); }
- };
+ };
/**
* @class ChildValueFn
@@ -71,18 +71,18 @@ namespace ZThread {
template <typename T>
T operator()(const T& value) { return T(value); }
};
-
+
/**
* @class UniqueChildValueFn
*/
struct UniqueChildValueFn : public ChildValueFn { };
-
+
/**
* @class InheritableValueFn
*/
struct InheritableValueFn {
- template <typename T>
+ template <typename T>
bool operator()(const T&) { return true; }
bool operator()(const UniqueChildValueFn&) { return false; }