OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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_FUCHSIA) | 6 #if defined(TARGET_OS_FUCHSIA) |
7 | 7 |
8 #include "vm/os.h" | 8 #include "vm/os.h" |
9 | 9 |
10 #include <errno.h> | 10 #include <errno.h> |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 return false; | 150 return false; |
151 } | 151 } |
152 | 152 |
153 | 153 |
154 int OS::NumberOfAvailableProcessors() { | 154 int OS::NumberOfAvailableProcessors() { |
155 return sysconf(_SC_NPROCESSORS_CONF); | 155 return sysconf(_SC_NPROCESSORS_CONF); |
156 } | 156 } |
157 | 157 |
158 | 158 |
159 uintptr_t OS::MaxRSS() { | 159 uintptr_t OS::MaxRSS() { |
160 UNIMPLEMENTED(); | 160 // TODO(US-95): Implement. |
161 return 0; | 161 return 0; |
162 } | 162 } |
163 | 163 |
164 | 164 |
165 void OS::Sleep(int64_t millis) { | 165 void OS::Sleep(int64_t millis) { |
166 mx_nanosleep(millis * kMicrosecondsPerMillisecond * | 166 mx_nanosleep(millis * kMicrosecondsPerMillisecond * |
167 kNanosecondsPerMicrosecond); | 167 kNanosecondsPerMicrosecond); |
168 } | 168 } |
169 | 169 |
170 | 170 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 } | 306 } |
307 | 307 |
308 | 308 |
309 void OS::Exit(int code) { | 309 void OS::Exit(int code) { |
310 UNIMPLEMENTED(); | 310 UNIMPLEMENTED(); |
311 } | 311 } |
312 | 312 |
313 } // namespace dart | 313 } // namespace dart |
314 | 314 |
315 #endif // defined(TARGET_OS_FUCHSIA) | 315 #endif // defined(TARGET_OS_FUCHSIA) |
OLD | NEW |