| 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 #ifndef V8_FUTEX_EMULATION_H_ | 5 #ifndef V8_FUTEX_EMULATION_H_ |
| 6 #define V8_FUTEX_EMULATION_H_ | 6 #define V8_FUTEX_EMULATION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 namespace v8 { | 25 namespace v8 { |
| 26 | 26 |
| 27 namespace base { | 27 namespace base { |
| 28 class TimeDelta; | 28 class TimeDelta; |
| 29 } // base | 29 } // base |
| 30 | 30 |
| 31 namespace internal { | 31 namespace internal { |
| 32 | 32 |
| 33 class Isolate; | 33 class Isolate; |
| 34 class JSArrayBuffer; |
| 34 | 35 |
| 35 class FutexWaitListNode { | 36 class FutexWaitListNode { |
| 36 public: | 37 public: |
| 37 FutexWaitListNode() | 38 FutexWaitListNode() |
| 38 : prev_(nullptr), | 39 : prev_(nullptr), |
| 39 next_(nullptr), | 40 next_(nullptr), |
| 40 backing_store_(nullptr), | 41 backing_store_(nullptr), |
| 41 wait_addr_(0), | 42 wait_addr_(0), |
| 42 waiting_(false) {} | 43 waiting_(false) {} |
| 43 | 44 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 size_t addr); | 115 size_t addr); |
| 115 | 116 |
| 116 private: | 117 private: |
| 117 static base::LazyMutex mutex_; | 118 static base::LazyMutex mutex_; |
| 118 static base::LazyInstance<FutexWaitList>::type wait_list_; | 119 static base::LazyInstance<FutexWaitList>::type wait_list_; |
| 119 }; | 120 }; |
| 120 } | 121 } |
| 121 } // namespace v8::internal | 122 } // namespace v8::internal |
| 122 | 123 |
| 123 #endif // V8_FUTEX_EMULATION_H_ | 124 #endif // V8_FUTEX_EMULATION_H_ |
| OLD | NEW |