Flutter Engine
flutter::DartIsolateGroupData Class Reference

#include <dart_isolate_group_data.h>

Public Member Functions

 DartIsolateGroupData (const Settings &settings, fml::RefPtr< const DartSnapshot > isolate_snapshot, std::string advisory_script_uri, std::string advisory_script_entrypoint, const ChildIsolatePreparer &child_isolate_preparer, const fml::closure &isolate_create_callback, const fml::closure &isolate_shutdown_callback)
 
 ~DartIsolateGroupData ()
 
const SettingsGetSettings () const
 
fml::RefPtr< const DartSnapshotGetIsolateSnapshot () const
 
const std::string & GetAdvisoryScriptURI () const
 
const std::string & GetAdvisoryScriptEntrypoint () const
 
ChildIsolatePreparer GetChildIsolatePreparer () const
 
const fml::closureGetIsolateCreateCallback () const
 
const fml::closureGetIsolateShutdownCallback () const
 
void SetChildIsolatePreparer (const ChildIsolatePreparer &value)
 

Detailed Description

Definition at line 28 of file dart_isolate_group_data.h.

Constructor & Destructor Documentation

◆ DartIsolateGroupData()

flutter::DartIsolateGroupData::DartIsolateGroupData ( const Settings settings,
fml::RefPtr< const DartSnapshot isolate_snapshot,
std::string  advisory_script_uri,
std::string  advisory_script_entrypoint,
const ChildIsolatePreparer child_isolate_preparer,
const fml::closure isolate_create_callback,
const fml::closure isolate_shutdown_callback 
)

Definition at line 11 of file dart_isolate_group_data.cc.

References FML_DCHECK, and ~DartIsolateGroupData().

19  : settings_(settings),
20  isolate_snapshot_(isolate_snapshot),
21  advisory_script_uri_(advisory_script_uri),
22  advisory_script_entrypoint_(advisory_script_entrypoint),
23  child_isolate_preparer_(child_isolate_preparer),
24  isolate_create_callback_(isolate_create_callback),
25  isolate_shutdown_callback_(isolate_shutdown_callback) {
26  FML_DCHECK(isolate_snapshot_) << "Must contain a valid isolate snapshot.";
27 }
#define FML_DCHECK(condition)
Definition: logging.h:86

◆ ~DartIsolateGroupData()

flutter::DartIsolateGroupData::~DartIsolateGroupData ( )
default

Referenced by DartIsolateGroupData().

Member Function Documentation

◆ GetAdvisoryScriptEntrypoint()

const std::string & flutter::DartIsolateGroupData::GetAdvisoryScriptEntrypoint ( ) const

Definition at line 44 of file dart_isolate_group_data.cc.

44  {
45  return advisory_script_entrypoint_;
46 }

◆ GetAdvisoryScriptURI()

const std::string & flutter::DartIsolateGroupData::GetAdvisoryScriptURI ( ) const

Definition at line 40 of file dart_isolate_group_data.cc.

40  {
41  return advisory_script_uri_;
42 }

◆ GetChildIsolatePreparer()

ChildIsolatePreparer flutter::DartIsolateGroupData::GetChildIsolatePreparer ( ) const

Definition at line 48 of file dart_isolate_group_data.cc.

Referenced by flutter::DartIsolate::Shutdown().

48  {
49  std::scoped_lock lock(child_isolate_preparer_mutex_);
50  return child_isolate_preparer_;
51 }

◆ GetIsolateCreateCallback()

const fml::closure & flutter::DartIsolateGroupData::GetIsolateCreateCallback ( ) const

Definition at line 53 of file dart_isolate_group_data.cc.

Referenced by flutter::DartIsolate::Shutdown().

53  {
54  return isolate_create_callback_;
55 }

◆ GetIsolateShutdownCallback()

const fml::closure & flutter::DartIsolateGroupData::GetIsolateShutdownCallback ( ) const

Definition at line 57 of file dart_isolate_group_data.cc.

Referenced by flutter::DartIsolate::Shutdown().

57  {
58  return isolate_shutdown_callback_;
59 }

◆ GetIsolateSnapshot()

fml::RefPtr< const DartSnapshot > flutter::DartIsolateGroupData::GetIsolateSnapshot ( ) const

Definition at line 35 of file dart_isolate_group_data.cc.

Referenced by flutter::DartIsolate::Shutdown().

36  {
37  return isolate_snapshot_;
38 }

◆ GetSettings()

const Settings & flutter::DartIsolateGroupData::GetSettings ( ) const

Definition at line 31 of file dart_isolate_group_data.cc.

Referenced by flutter::DartIsolate::Shutdown().

31  {
32  return settings_;
33 }

◆ SetChildIsolatePreparer()

void flutter::DartIsolateGroupData::SetChildIsolatePreparer ( const ChildIsolatePreparer value)

Definition at line 61 of file dart_isolate_group_data.cc.

References value.

62  {
63  std::scoped_lock lock(child_isolate_preparer_mutex_);
64  child_isolate_preparer_ = value;
65 }
uint8_t value

The documentation for this class was generated from the following files: