[VM] Added cleanup for Dart IO API

Change-Id: Iab9f567ef3d4310ee9511fa5ce375b7ccf200ef5
Reviewed-on: https://dart-review.googlesource.com/c/81442
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
This commit is contained in:
Ben Konyi 2018-10-25 21:13:43 +00:00 committed by commit-bot@chromium.org
parent 74d058ef1b
commit 2cf0ca381c
2 changed files with 7 additions and 0 deletions

View file

@ -23,6 +23,10 @@ void BootstrapDartIo() {
EventHandler::Start();
}
void CleanupDartIo() {
EventHandler::Stop();
}
void SetSystemTempDirectory(const char* system_temp) {
Directory::SetSystemTemp(system_temp);
}

View file

@ -13,6 +13,9 @@ namespace bin {
// Bootstraps 'dart:io'.
void BootstrapDartIo();
// Cleans up 'dart:io'.
void CleanupDartIo();
// Lets dart:io know where the system temporary directory is located.
// Currently only wired up on Android.
void SetSystemTempDirectory(const char* system_temp);