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

Side by Side Diff: runtime/vm/os_win.cc

Issue 462353002: - Do not use platform/thread.h (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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/bin/thread_win.cc ('k') | runtime/vm/thread_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 "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_OS_WINDOWS) 6 #if defined(TARGET_OS_WINDOWS)
7 7
8 #include "vm/os.h" 8 #include "vm/os.h"
9 #include "vm/vtune.h"
10 9
11 #include <malloc.h> // NOLINT 10 #include <malloc.h> // NOLINT
12 #include <process.h> // NOLINT 11 #include <process.h> // NOLINT
13 #include <time.h> // NOLINT 12 #include <time.h> // NOLINT
14 13
15 #include "platform/utils.h" 14 #include "platform/utils.h"
16 #include "platform/assert.h" 15 #include "platform/assert.h"
17 #include "platform/thread.h" 16 #include "vm/thread.h"
17 #include "vm/vtune.h"
18 18
19 namespace dart { 19 namespace dart {
20 20
21 const char* OS::Name() { 21 const char* OS::Name() {
22 return "windows"; 22 return "windows";
23 } 23 }
24 24
25 25
26 intptr_t OS::ProcessId() { 26 intptr_t OS::ProcessId() {
27 return static_cast<intptr_t>(GetCurrentProcessId()); 27 return static_cast<intptr_t>(GetCurrentProcessId());
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 } 327 }
328 328
329 329
330 void OS::Exit(int code) { 330 void OS::Exit(int code) {
331 exit(code); 331 exit(code);
332 } 332 }
333 333
334 } // namespace dart 334 } // namespace dart
335 335
336 #endif // defined(TARGET_OS_WINDOWS) 336 #endif // defined(TARGET_OS_WINDOWS)
OLDNEW
« no previous file with comments | « runtime/bin/thread_win.cc ('k') | runtime/vm/thread_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698