Flutter Engine
The Flutter Engine
|
#include <dart_persistent_value.h>
Public Member Functions | |
DartPersistentValue () | |
DartPersistentValue (DartPersistentValue &&other) | |
DartPersistentValue (DartState *dart_state, Dart_Handle value) | |
~DartPersistentValue () | |
Dart_PersistentHandle | value () const |
bool | is_empty () const |
void | Set (DartState *dart_state, Dart_Handle value) |
void | Clear () |
Dart_Handle | Get () |
Dart_Handle | Release () |
const std::weak_ptr< DartState > & | dart_state () const |
Definition at line 20 of file dart_persistent_value.h.
tonic::DartPersistentValue::DartPersistentValue | ( | ) |
Definition at line 12 of file dart_persistent_value.cc.
tonic::DartPersistentValue::DartPersistentValue | ( | DartPersistentValue && | other | ) |
Definition at line 14 of file dart_persistent_value.cc.
tonic::DartPersistentValue::DartPersistentValue | ( | DartState * | dart_state, |
Dart_Handle | value | ||
) |
Definition at line 20 of file dart_persistent_value.cc.
tonic::DartPersistentValue::~DartPersistentValue | ( | ) |
Definition at line 26 of file dart_persistent_value.cc.
void tonic::DartPersistentValue::Clear | ( | ) |
TODO(80155): Remove the handle even if the isolate is shutting down. This may cause memory to stick around until the isolate group is destroyed. Without this branch, if DartState::IsShuttingDown == true, this code will crash when binding the isolate.
Definition at line 36 of file dart_persistent_value.cc.
|
inline |
Definition at line 35 of file dart_persistent_value.h.
Dart_Handle tonic::DartPersistentValue::Get | ( | ) |
Definition at line 66 of file dart_persistent_value.cc.
|
inline |
Definition at line 28 of file dart_persistent_value.h.
Dart_Handle tonic::DartPersistentValue::Release | ( | ) |
Definition at line 72 of file dart_persistent_value.cc.
void tonic::DartPersistentValue::Set | ( | DartState * | dart_state, |
Dart_Handle | value | ||
) |
Definition at line 30 of file dart_persistent_value.cc.
|
inline |
Definition at line 27 of file dart_persistent_value.h.