mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:49:47 +00:00
[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:
parent
74d058ef1b
commit
2cf0ca381c
|
@ -23,6 +23,10 @@ void BootstrapDartIo() {
|
|||
EventHandler::Start();
|
||||
}
|
||||
|
||||
void CleanupDartIo() {
|
||||
EventHandler::Stop();
|
||||
}
|
||||
|
||||
void SetSystemTempDirectory(const char* system_temp) {
|
||||
Directory::SetSystemTemp(system_temp);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue