OLD | NEW |
---|---|
1 // Copyright (c) 2011, 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 <process.h> | 5 #include <process.h> |
6 | 6 |
7 #include "platform/assert.h" | |
7 #include "vm/thread.h" | 8 #include "vm/thread.h" |
Ivan Posva
2012/01/13 23:22:06
First.
Søren Gjesse
2012/01/16 08:58:00
Done.
| |
8 | 9 |
9 #include "vm/assert.h" | |
10 | |
11 namespace dart { | 10 namespace dart { |
12 | 11 |
13 class ThreadStartData { | 12 class ThreadStartData { |
14 public: | 13 public: |
15 ThreadStartData(Thread::ThreadStartFunction function, | 14 ThreadStartData(Thread::ThreadStartFunction function, |
16 uword parameter, | 15 uword parameter, |
17 Thread* thread) | 16 Thread* thread) |
18 : function_(function), parameter_(parameter), thread_(thread) {} | 17 : function_(function), parameter_(parameter), thread_(thread) {} |
19 | 18 |
20 Thread::ThreadStartFunction function() const { return function_; } | 19 Thread::ThreadStartFunction function() const { return function_; } |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 void Monitor::Notify() { | 162 void Monitor::Notify() { |
164 WakeConditionVariable(&data_.cond_); | 163 WakeConditionVariable(&data_.cond_); |
165 } | 164 } |
166 | 165 |
167 | 166 |
168 void Monitor::NotifyAll() { | 167 void Monitor::NotifyAll() { |
169 WakeAllConditionVariable(&data_.cond_); | 168 WakeAllConditionVariable(&data_.cond_); |
170 } | 169 } |
171 | 170 |
172 } // namespace dart | 171 } // namespace dart |
OLD | NEW |