Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(547)

Side by Side Diff: Source/wtf/ThreadSpecific.h

Issue 1041103002: PartitionAlloc: Centralize Partition allocators into one place (Part 1) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Jian Li <jianli@chromium.org> 3 * Copyright (C) 2009 Jian Li <jianli@chromium.org>
4 * Copyright (C) 2012 Patrick Gansterer <paroga@paroga.com> 4 * Copyright (C) 2012 Patrick Gansterer <paroga@paroga.com>
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 25 matching lines...) Expand all
36 * @ In Windows native implementation, the destructor function will be called 36 * @ In Windows native implementation, the destructor function will be called
37 * only once. 37 * only once.
38 * This semantic discrepancy does not impose any problem because nowhere in 38 * This semantic discrepancy does not impose any problem because nowhere in
39 * WebKit the repeated call bahavior is utilized. 39 * WebKit the repeated call bahavior is utilized.
40 */ 40 */
41 41
42 #ifndef WTF_ThreadSpecific_h 42 #ifndef WTF_ThreadSpecific_h
43 #define WTF_ThreadSpecific_h 43 #define WTF_ThreadSpecific_h
44 44
45 #include "wtf/Noncopyable.h" 45 #include "wtf/Noncopyable.h"
46 #include "wtf/Partitions.h"
46 #include "wtf/StdLibExtras.h" 47 #include "wtf/StdLibExtras.h"
47 #include "wtf/WTF.h"
48 #include "wtf/WTFExport.h" 48 #include "wtf/WTFExport.h"
49 49
50 #if USE(PTHREADS) 50 #if USE(PTHREADS)
51 #include <pthread.h> 51 #include <pthread.h>
52 #elif OS(WIN) 52 #elif OS(WIN)
53 #include <windows.h> 53 #include <windows.h>
54 #endif 54 #endif
55 55
56 namespace WTF { 56 namespace WTF {
57 57
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 inline T& ThreadSpecific<T>::operator*() 276 inline T& ThreadSpecific<T>::operator*()
277 { 277 {
278 return *operator T*(); 278 return *operator T*();
279 } 279 }
280 280
281 } // namespace WTF 281 } // namespace WTF
282 282
283 using WTF::ThreadSpecific; 283 using WTF::ThreadSpecific;
284 284
285 #endif // WTF_ThreadSpecific_h 285 #endif // WTF_ThreadSpecific_h
OLDNEW
« Source/wtf/Partitions.cpp ('K') | « Source/wtf/Partitions.cpp ('k') | Source/wtf/Vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698