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

Unified Diff: runtime/platform/platform_os.h

Issue 13641005: Add a sleep function to dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: runtime/platform/platform_os.h
diff --git a/runtime/platform/platform_os.h b/runtime/platform/platform_os.h
new file mode 100644
index 0000000000000000000000000000000000000000..9bb2cb450796888c57fe5100917d75c408bd341b
--- /dev/null
+++ b/runtime/platform/platform_os.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#ifndef PLATFORM_PLATFORM_OS_H_
+#define PLATFORM_PLATFORM_OS_H_
+
+namespace platform {
+
+// Interface to the underlying OS platform.
+class OS {
+ public:
+ // Sleep the currently executing thread for millis ms.
+ static void Sleep(int64_t millis);
+};
+
+} // namespace dart
+
+#endif // PLATFORM_PLATFORM_OS_H_

Powered by Google App Engine
This is Rietveld 408576698