summaryrefslogtreecommitdiffstats
path: root/base/tracked_objects.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-30 16:52:09 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-30 16:52:09 +0000
commit444b8a3c2cb9f74a280eb370abd8792d51870dcb (patch)
tree37be62fef7f7a45a1e93dee5e898e5d25aa40962 /base/tracked_objects.h
parent0d4cd065a9b3e28de6ae1e332e1b5fe1d38d6cb6 (diff)
downloadchromium_src-444b8a3c2cb9f74a280eb370abd8792d51870dcb.zip
chromium_src-444b8a3c2cb9f74a280eb370abd8792d51870dcb.tar.gz
chromium_src-444b8a3c2cb9f74a280eb370abd8792d51870dcb.tar.bz2
Make it possible to use ThreadLocalStorage::Slot as a static without
introducing static initializers. Member variables can stay TLS::Slots and their behavior doesn't change. Static instances use TLS::StaticSlot instead. Kind of like http://codereview.chromium.org/8491043 but for TLS. BUG=none TEST=none TBR=agl Review URL: https://chromiumcodereview.appspot.com/9297010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119679 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/tracked_objects.h')
-rw-r--r--base/tracked_objects.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/tracked_objects.h b/base/tracked_objects.h
index b1bf02e..9b7f111 100644
--- a/base/tracked_objects.h
+++ b/base/tracked_objects.h
@@ -544,7 +544,7 @@ class BASE_EXPORT ThreadData {
static void ShutdownSingleThreadedCleanup(bool leak);
// We use thread local store to identify which ThreadData to interact with.
- static base::ThreadLocalStorage::Slot tls_index_;
+ static base::ThreadLocalStorage::StaticSlot tls_index_;
// List of ThreadData instances for use with worker threads. When a worker
// thread is done (terminated), we push it onto this llist. When a new worker