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

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

Issue 12282051: Prepare for removal of source_filter.gypi: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « runtime/platform/thread_macos.cc ('k') | runtime/vm/os_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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)
OLDNEW
« no previous file with comments | « runtime/platform/thread_macos.cc ('k') | runtime/vm/os_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698