OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "include/v8-platform.h" | 5 #include "include/v8-platform.h" |
6 #include "src/base/platform/platform.h" | 6 #include "src/base/platform/platform.h" |
7 #include "src/libplatform/task-queue.h" | 7 #include "src/libplatform/task-queue.h" |
8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
9 | 9 |
10 using testing::InSequence; | 10 using testing::InSequence; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 TaskQueueThread thread2(&queue); | 51 TaskQueueThread thread2(&queue); |
52 thread1.Start(); | 52 thread1.Start(); |
53 thread2.Start(); | 53 thread2.Start(); |
54 queue.Terminate(); | 54 queue.Terminate(); |
55 thread1.Join(); | 55 thread1.Join(); |
56 thread2.Join(); | 56 thread2.Join(); |
57 } | 57 } |
58 | 58 |
59 } // namespace platform | 59 } // namespace platform |
60 } // namespace v8 | 60 } // namespace v8 |
OLD | NEW |