diff options
author | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-07 20:12:28 +0000 |
---|---|---|
committer | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-07 20:12:28 +0000 |
commit | e82b706db2d3da13746b66fd5ab7d5dd38fab17e (patch) | |
tree | 481f0dc57f23c984b5a5b0a9c169b6e928b9258f /base/thread_local_storage.h | |
parent | f3adb5c4f36fd3233d0c0baad5eaef76da462a87 (diff) | |
download | chromium_src-e82b706db2d3da13746b66fd5ab7d5dd38fab17e.zip chromium_src-e82b706db2d3da13746b66fd5ab7d5dd38fab17e.tar.gz chromium_src-e82b706db2d3da13746b66fd5ab7d5dd38fab17e.tar.bz2 |
Port in threading for Posix. Will require fixes to MessageLoop and Task to compile on the Mac, though.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@532 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/thread_local_storage.h')
-rw-r--r-- | base/thread_local_storage.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/base/thread_local_storage.h b/base/thread_local_storage.h index 51536f3..245a73f 100644 --- a/base/thread_local_storage.h +++ b/base/thread_local_storage.h @@ -27,14 +27,15 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#ifndef BASE_THREAD_LOCAL_STORAGE_H__ -#define BASE_THREAD_LOCAL_STORAGE_H__ +#ifndef BASE_THREAD_LOCAL_STORAGE_H_ +#define BASE_THREAD_LOCAL_STORAGE_H_ #include "base/basictypes.h" #if defined(OS_WIN) typedef int TLSSlot; #elif defined(OS_POSIX) +#include <pthread.h> typedef pthread_key_t TLSSlot; #endif // OS_* @@ -92,4 +93,4 @@ class ThreadLocalStorage { DISALLOW_EVIL_CONSTRUCTORS(ThreadLocalStorage); }; -#endif // BASE_THREAD_LOCAL_STORAGE_H__ +#endif // BASE_THREAD_LOCAL_STORAGE_H_ |