Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Side by Side Diff: runtime/platform/thread_win.cc

Issue 9196002: Move Mutex and Monitor from vm/ to platform/ (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Another minor change Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "vm/thread.h" 5 #include "platform/thread.h"
6 6
7 #include <process.h> 7 #include <process.h>
8 8
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/globals.h"
Mads Ager (google) 2012/01/16 16:30:37 I guess there are added to explicity include what
Søren Gjesse 2012/01/17 10:28:57 Right - removed as it is not really needed.
10 11
11 namespace dart { 12 namespace dart {
12 13
13 class ThreadStartData { 14 class ThreadStartData {
14 public: 15 public:
15 ThreadStartData(Thread::ThreadStartFunction function, 16 ThreadStartData(Thread::ThreadStartFunction function,
16 uword parameter, 17 uword parameter,
17 Thread* thread) 18 Thread* thread)
18 : function_(function), parameter_(parameter), thread_(thread) {} 19 : function_(function), parameter_(parameter), thread_(thread) {}
19 20
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 void Monitor::Notify() { 164 void Monitor::Notify() {
164 WakeConditionVariable(&data_.cond_); 165 WakeConditionVariable(&data_.cond_);
165 } 166 }
166 167
167 168
168 void Monitor::NotifyAll() { 169 void Monitor::NotifyAll() {
169 WakeAllConditionVariable(&data_.cond_); 170 WakeAllConditionVariable(&data_.cond_);
170 } 171 }
171 172
172 } // namespace dart 173 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698