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

Side by Side Diff: third_party/WebKit/Source/platform/heap/PersistentNode.h

Issue 1818233003: Merge WTF::initializeMainThread into WTF::initialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PersistentNode_h 5 #ifndef PersistentNode_h
6 #define PersistentNode_h 6 #define PersistentNode_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/heap/ThreadState.h" 9 #include "platform/heap/ThreadState.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
11 #include "wtf/Assertions.h" 11 #include "wtf/Assertions.h"
12 #include "wtf/MainThread.h"
13 #include "wtf/ThreadingPrimitives.h" 12 #include "wtf/ThreadingPrimitives.h"
14 13
15 namespace blink { 14 namespace blink {
16 15
17 class CrossThreadPersistentRegion; 16 class CrossThreadPersistentRegion;
18 17
19 class PersistentNode final { 18 class PersistentNode final {
20 DISALLOW_NEW(); 19 DISALLOW_NEW();
21 public: 20 public:
22 PersistentNode() 21 PersistentNode()
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // We don't make CrossThreadPersistentRegion inherit from PersistentRegion 192 // We don't make CrossThreadPersistentRegion inherit from PersistentRegion
194 // because we don't want to virtualize performance-sensitive methods 193 // because we don't want to virtualize performance-sensitive methods
195 // such as PersistentRegion::allocate/freePersistentNode. 194 // such as PersistentRegion::allocate/freePersistentNode.
196 OwnPtr<PersistentRegion> m_persistentRegion; 195 OwnPtr<PersistentRegion> m_persistentRegion;
197 Mutex m_mutex; 196 Mutex m_mutex;
198 }; 197 };
199 198
200 } // namespace blink 199 } // namespace blink
201 200
202 #endif 201 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapPage.cpp ('k') | third_party/WebKit/Source/platform/heap/RunAllTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698