Flutter Engine
The Flutter Engine
|
#include <platform_isolate_manager.h>
Public Member Functions | |
bool | HasShutdown () |
bool | HasShutdownMaybeFalseNegative () |
bool | RegisterPlatformIsolate (Dart_Isolate isolate) |
void | RemovePlatformIsolate (Dart_Isolate isolate) |
void | ShutdownPlatformIsolates () |
bool | IsRegisteredForTestingOnly (Dart_Isolate isolate) |
Maintains a list of registered platform isolates, so that they can be proactively shutdown as a group during shell shutdown.
Definition at line 18 of file platform_isolate_manager.h.
bool flutter::PlatformIsolateManager::HasShutdown | ( | ) |
Returns whether the PlatformIsolateManager is shutdown. New isolates cannot be registered after the manager is shutdown. Must be called on the platform thread.
Definition at line 11 of file platform_isolate_manager.cc.
bool flutter::PlatformIsolateManager::HasShutdownMaybeFalseNegative | ( | ) |
Returns whether the PlatformIsolateManager is shutdown. New isolates cannot be registered after the manager is shutdown. Callable from any thread. The result may be obsolete immediately after the call.
Definition at line 17 of file platform_isolate_manager.cc.
bool flutter::PlatformIsolateManager::IsRegisteredForTestingOnly | ( | Dart_Isolate | isolate | ) |
Returns whether an isolate is registered. For testing only. Callable from any thread.
Definition at line 65 of file platform_isolate_manager.cc.
bool flutter::PlatformIsolateManager::RegisterPlatformIsolate | ( | Dart_Isolate | isolate | ) |
Register an isolate in the list of platform isolates. Callable from any thread.
Definition at line 22 of file platform_isolate_manager.cc.
void flutter::PlatformIsolateManager::RemovePlatformIsolate | ( | Dart_Isolate | isolate | ) |
Remove an isolate from the list of platform isolates. Must be called from the platform thread.
Definition at line 33 of file platform_isolate_manager.cc.
void flutter::PlatformIsolateManager::ShutdownPlatformIsolates | ( | ) |
Shuts down all registered isolates, and the manager itself. Must be called from the platform thread.
Definition at line 51 of file platform_isolate_manager.cc.