Index: base/threading/thread_local_storage_posix.cc |
diff --git a/base/threading/thread_local_storage_posix.cc b/base/threading/thread_local_storage_posix.cc |
index 3d0e18731021cd77de85f91a6492450d0cac016e..295d57c3a99a52a9b759572718fbd5d6738adc9b 100644 |
--- a/base/threading/thread_local_storage_posix.cc |
+++ b/base/threading/thread_local_storage_posix.cc |
@@ -8,13 +8,13 @@ |
namespace base { |
-ThreadLocalStorage::Slot::Slot(TLSDestructorFunc destructor) |
- : initialized_(false), |
- key_(0) { |
+ThreadLocalStorage::Slot::Slot(TLSDestructorFunc destructor) { |
+ initialized_ = false; |
+ key_ = 0; |
Initialize(destructor); |
} |
-bool ThreadLocalStorage::Slot::Initialize(TLSDestructorFunc destructor) { |
+bool ThreadLocalStorage::StaticSlot::Initialize(TLSDestructorFunc destructor) { |
DCHECK(!initialized_); |
int error = pthread_key_create(&key_, destructor); |
if (error) { |
@@ -26,7 +26,7 @@ bool ThreadLocalStorage::Slot::Initialize(TLSDestructorFunc destructor) { |
return true; |
} |
-void ThreadLocalStorage::Slot::Free() { |
+void ThreadLocalStorage::StaticSlot::Free() { |
DCHECK(initialized_); |
int error = pthread_key_delete(key_); |
if (error) |
@@ -34,12 +34,12 @@ void ThreadLocalStorage::Slot::Free() { |
initialized_ = false; |
} |
-void* ThreadLocalStorage::Slot::Get() const { |
+void* ThreadLocalStorage::StaticSlot::Get() const { |
DCHECK(initialized_); |
return pthread_getspecific(key_); |
} |
-void ThreadLocalStorage::Slot::Set(void* value) { |
+void ThreadLocalStorage::StaticSlot::Set(void* value) { |
DCHECK(initialized_); |
int error = pthread_setspecific(key_, value); |
if (error) |