| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/globals.h" |
| 6 #if defined(TARGET_OS_WINDOWS) |
| 7 |
| 5 #include "platform/thread.h" | 8 #include "platform/thread.h" |
| 6 | 9 |
| 7 #include <process.h> | 10 #include <process.h> // NOLINT |
| 8 | 11 |
| 9 #include "platform/assert.h" | 12 #include "platform/assert.h" |
| 10 | 13 |
| 11 namespace dart { | 14 namespace dart { |
| 12 | 15 |
| 13 class ThreadStartData { | 16 class ThreadStartData { |
| 14 public: | 17 public: |
| 15 ThreadStartData(Thread::ThreadStartFunction function, uword parameter) | 18 ThreadStartData(Thread::ThreadStartFunction function, uword parameter) |
| 16 : function_(function), parameter_(parameter) {} | 19 : function_(function), parameter_(parameter) {} |
| 17 | 20 |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 void Monitor::NotifyAll() { | 332 void Monitor::NotifyAll() { |
| 330 // If one of the objects in the list of waiters wakes because of a | 333 // If one of the objects in the list of waiters wakes because of a |
| 331 // timeout before we signal it, that object will get an extra | 334 // timeout before we signal it, that object will get an extra |
| 332 // signal. This will be treated as a spurious wake-up and is OK | 335 // signal. This will be treated as a spurious wake-up and is OK |
| 333 // since all uses of monitors should recheck the condition after a | 336 // since all uses of monitors should recheck the condition after a |
| 334 // Wait. | 337 // Wait. |
| 335 data_.SignalAndRemoveAllWaiters(); | 338 data_.SignalAndRemoveAllWaiters(); |
| 336 } | 339 } |
| 337 | 340 |
| 338 } // namespace dart | 341 } // namespace dart |
| 342 |
| 343 #endif // defined(TARGET_OS_WINDOWS) |
| OLD | NEW |