| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 static Object* NumWaitersForTesting(Isolate* isolate, | 118 static Object* NumWaitersForTesting(Isolate* isolate, |
| 119 Handle<JSArrayBuffer> array_buffer, | 119 Handle<JSArrayBuffer> array_buffer, |
| 120 size_t addr); | 120 size_t addr); |
| 121 | 121 |
| 122 private: | 122 private: |
| 123 friend class FutexWaitListNode; | 123 friend class FutexWaitListNode; |
| 124 | 124 |
| 125 static base::LazyMutex mutex_; | 125 static base::LazyMutex mutex_; |
| 126 static base::LazyInstance<FutexWaitList>::type wait_list_; | 126 static base::LazyInstance<FutexWaitList>::type wait_list_; |
| 127 }; | 127 }; |
| 128 } | 128 } // namespace internal |
| 129 } // namespace v8::internal | 129 } // namespace v8 |
| 130 | 130 |
| 131 #endif // V8_FUTEX_EMULATION_H_ | 131 #endif // V8_FUTEX_EMULATION_H_ |
| OLD | NEW |