summaryrefslogtreecommitdiff
path: root/runtime/utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/utils.cc')
-rw-r--r--runtime/utils.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/utils.cc b/runtime/utils.cc
index 1e1c7e7098..8e9f12b7a0 100644
--- a/runtime/utils.cc
+++ b/runtime/utils.cc
@@ -1871,4 +1871,10 @@ int64_t GetFileSizeBytes(const std::string& filename) {
return rc == 0 ? stat_buf.st_size : -1;
}
+void SleepForever() {
+ while (true) {
+ usleep(1000000);
+ }
+}
+
} // namespace art