| OLD | NEW |
| 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_TASK_QUEUE_H_ | 5 #ifndef V8_LIBPLATFORM_TASK_QUEUE_H_ |
| 6 #define V8_LIBPLATFORM_TASK_QUEUE_H_ | 6 #define V8_LIBPLATFORM_TASK_QUEUE_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "include/libplatform/libplatform-export.h" | 10 #include "include/libplatform/libplatform-export.h" |
| 11 #include "src/base/macros.h" | 11 #include "src/base/macros.h" |
| 12 #include "src/base/platform/mutex.h" | 12 #include "src/base/platform/mutex.h" |
| 13 #include "src/base/platform/semaphore.h" | 13 #include "src/base/platform/semaphore.h" |
| 14 #include "testing/gtest/include/gtest/gtest_prod.h" | 14 #include "testing/gtest/include/gtest/gtest_prod.h" // nogncheck |
| 15 | 15 |
| 16 namespace v8 { | 16 namespace v8 { |
| 17 | 17 |
| 18 class Task; | 18 class Task; |
| 19 | 19 |
| 20 namespace platform { | 20 namespace platform { |
| 21 | 21 |
| 22 class V8_PLATFORM_EXPORT TaskQueue { | 22 class V8_PLATFORM_EXPORT TaskQueue { |
| 23 public: | 23 public: |
| 24 TaskQueue(); | 24 TaskQueue(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 45 bool terminated_; | 45 bool terminated_; |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(TaskQueue); | 47 DISALLOW_COPY_AND_ASSIGN(TaskQueue); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace platform | 50 } // namespace platform |
| 51 } // namespace v8 | 51 } // namespace v8 |
| 52 | 52 |
| 53 | 53 |
| 54 #endif // V8_LIBPLATFORM_TASK_QUEUE_H_ | 54 #endif // V8_LIBPLATFORM_TASK_QUEUE_H_ |
| OLD | NEW |