Skip to content

Commit

Permalink
[VM] Added cleanup for Dart IO API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bkonyi authored and commit-bot@chromium.org committed Oct 25, 2018
1 parent 74d058e commit 2cf0ca3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/bin/dart_io_api_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ void BootstrapDartIo() {
EventHandler::Start();
}

void CleanupDartIo() {
EventHandler::Stop();
}

void SetSystemTempDirectory(const char* system_temp) {
Directory::SetSystemTemp(system_temp);
}
Expand Down
3 changes: 3 additions & 0 deletions runtime/include/bin/dart_io_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2cf0ca3

Please sign in to comment.