| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 "src/futex-emulation.h" | 5 #include "src/futex-emulation.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/base/macros.h" | 9 #include "src/base/macros.h" |
| 10 #include "src/base/platform/time.h" | 10 #include "src/base/platform/time.h" |
| 11 #include "src/conversions.h" | 11 #include "src/conversions.h" |
| 12 #include "src/handles-inl.h" | 12 #include "src/handles-inl.h" |
| 13 #include "src/isolate.h" | 13 #include "src/isolate.h" |
| 14 #include "src/list-inl.h" | 14 #include "src/list-inl.h" |
| 15 #include "src/objects-inl.h" |
| 15 | 16 |
| 16 namespace v8 { | 17 namespace v8 { |
| 17 namespace internal { | 18 namespace internal { |
| 18 | 19 |
| 19 base::LazyMutex FutexEmulation::mutex_ = LAZY_MUTEX_INITIALIZER; | 20 base::LazyMutex FutexEmulation::mutex_ = LAZY_MUTEX_INITIALIZER; |
| 20 base::LazyInstance<FutexWaitList>::type FutexEmulation::wait_list_ = | 21 base::LazyInstance<FutexWaitList>::type FutexEmulation::wait_list_ = |
| 21 LAZY_INSTANCE_INITIALIZER; | 22 LAZY_INSTANCE_INITIALIZER; |
| 22 | 23 |
| 23 | 24 |
| 24 void FutexWaitListNode::NotifyWake() { | 25 void FutexWaitListNode::NotifyWake() { |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 } | 231 } |
| 231 | 232 |
| 232 node = node->next_; | 233 node = node->next_; |
| 233 } | 234 } |
| 234 | 235 |
| 235 return Smi::FromInt(waiters); | 236 return Smi::FromInt(waiters); |
| 236 } | 237 } |
| 237 | 238 |
| 238 } // namespace internal | 239 } // namespace internal |
| 239 } // namespace v8 | 240 } // namespace v8 |
| OLD | NEW |