| Index: runtime/platform/platform_os_android.cc
|
| diff --git a/runtime/platform/platform_os_android.cc b/runtime/platform/platform_os_android.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ac3fdd013125bb560b3bd6dd6e2c0df6d4e103bf
|
| --- /dev/null
|
| +++ b/runtime/platform/platform_os_android.cc
|
| @@ -0,0 +1,22 @@
|
| +// 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.
|
| +
|
| +#include "platform/globals.h"
|
| +#if defined(TARGET_OS_ANDROID)
|
| +
|
| +#include "platform/platform_os.h"
|
| +
|
| +#include <unistd.h> // NOLINT
|
| +
|
| +
|
| +namespace platform {
|
| +
|
| +void OS::Sleep(int64_t millis) {
|
| + // TODO(5411554): For now just use usleep we may have to revisit this.
|
| + usleep(millis * 1000);
|
| +}
|
| +
|
| +} // namespace platform
|
| +
|
| +#endif // defined(TARGET_OS_ANDROID)
|
|
|