From 6a6e657234868ad4044b03bdeb9c6f7e872b5ee6 Mon Sep 17 00:00:00 2001 From: "evanm@google.com" Date: Wed, 20 Aug 2008 22:54:52 +0000 Subject: TrackedObjects assumes you can use a "TLS slot" of -1 to indicate uninitialized. This isn't true for the pthread_key_t type, which is unsigned on Linux and reportedly a struct on Macs. This change modifies the Slot type to be a struct containing an "initialized" flag. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1122 0039d316-1c4b-4281-b951-d872f2087c98 --- base/message_loop.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base/message_loop.h') diff --git a/base/message_loop.h b/base/message_loop.h index 3821519..e11b73f 100644 --- a/base/message_loop.h +++ b/base/message_loop.h @@ -194,7 +194,7 @@ class MessageLoop : public base::MessagePump::Delegate { // Returns the MessageLoop object for the current thread, or null if none. static MessageLoop* current() { - return static_cast(ThreadLocalStorage::Get(tls_index_)); + return static_cast(tls_index_.Get()); } // Returns the TimerManager object for the current thread. -- cgit v1.1