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

Side by Side Diff: src/libplatform/default-platform.h

Issue 1088993003: Replace OVERRIDE->override and FINAL->final since we now require C++11. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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
« no previous file with comments | « src/jsregexp.h ('k') | src/libplatform/worker-thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project 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 V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ 5 #ifndef V8_LIBPLATFORM_DEFAULT_PLATFORM_H_
6 #define V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ 6 #define V8_LIBPLATFORM_DEFAULT_PLATFORM_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 virtual ~DefaultPlatform(); 27 virtual ~DefaultPlatform();
28 28
29 void SetThreadPoolSize(int thread_pool_size); 29 void SetThreadPoolSize(int thread_pool_size);
30 30
31 void EnsureInitialized(); 31 void EnsureInitialized();
32 32
33 bool PumpMessageLoop(v8::Isolate* isolate); 33 bool PumpMessageLoop(v8::Isolate* isolate);
34 34
35 // v8::Platform implementation. 35 // v8::Platform implementation.
36 virtual void CallOnBackgroundThread( 36 virtual void CallOnBackgroundThread(
37 Task* task, ExpectedRuntime expected_runtime) OVERRIDE; 37 Task* task, ExpectedRuntime expected_runtime) override;
38 virtual void CallOnForegroundThread(v8::Isolate* isolate, 38 virtual void CallOnForegroundThread(v8::Isolate* isolate,
39 Task* task) OVERRIDE; 39 Task* task) override;
40 double MonotonicallyIncreasingTime() OVERRIDE; 40 double MonotonicallyIncreasingTime() override;
41 41
42 private: 42 private:
43 static const int kMaxThreadPoolSize; 43 static const int kMaxThreadPoolSize;
44 44
45 base::Mutex lock_; 45 base::Mutex lock_;
46 bool initialized_; 46 bool initialized_;
47 int thread_pool_size_; 47 int thread_pool_size_;
48 std::vector<WorkerThread*> thread_pool_; 48 std::vector<WorkerThread*> thread_pool_;
49 TaskQueue queue_; 49 TaskQueue queue_;
50 std::map<v8::Isolate*, std::queue<Task*> > main_thread_queue_; 50 std::map<v8::Isolate*, std::queue<Task*> > main_thread_queue_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); 52 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform);
53 }; 53 };
54 54
55 55
56 } } // namespace v8::platform 56 } } // namespace v8::platform
57 57
58 58
59 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ 59 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/jsregexp.h ('k') | src/libplatform/worker-thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698