mirror of
https://github.com/openharmony/ace_engine_lite.git
synced 2026-07-21 00:35:30 -04:00
Description: allow async work dispatching in advance
IssueNo: I4H2AG Feature or Bugfix: Feature Binary Source:No Signed-off-by: jiadexiang <jiadexiang@huawei.com>
This commit is contained in:
@@ -110,14 +110,14 @@ void JSAbility::Launch(const char * const abilityPath, const char * const bundle
|
|||||||
// mark the flag in advance to make sure we can take over render tick as soon as possible
|
// mark the flag in advance to make sure we can take over render tick as soon as possible
|
||||||
ProductAdapter::UpdateRenderTickAcceptable(true);
|
ProductAdapter::UpdateRenderTickAcceptable(true);
|
||||||
JSAbilityImpl *jsAbilityImpl = CastAbilityImpl(jsAbilityImpl_);
|
JSAbilityImpl *jsAbilityImpl = CastAbilityImpl(jsAbilityImpl_);
|
||||||
jsAbilityImpl->InitEnvironment(abilityPath, bundleName, token);
|
|
||||||
ACE_EVENT_PRINT(MT_ACE_FWK_LAUNCHING, 0);
|
|
||||||
FatalHandler::GetInstance().RegisterFatalHandler(this);
|
|
||||||
jsAbilityImpl->DeliverCreate(pageInfo);
|
|
||||||
#ifndef MOCK_JS_ASYNC_WORK
|
#ifndef MOCK_JS_ASYNC_WORK
|
||||||
// simulator uses the self-implementation for async work, this interface is not included
|
// simulator uses the self-implementation for async work, this interface is not included
|
||||||
JsAsyncWork::SetEnvStatus(true);
|
JsAsyncWork::SetEnvStatus(true);
|
||||||
#endif
|
#endif
|
||||||
|
jsAbilityImpl->InitEnvironment(abilityPath, bundleName, token);
|
||||||
|
ACE_EVENT_PRINT(MT_ACE_FWK_LAUNCHING, 0);
|
||||||
|
FatalHandler::GetInstance().RegisterFatalHandler(this);
|
||||||
|
jsAbilityImpl->DeliverCreate(pageInfo);
|
||||||
STOP_TRACING();
|
STOP_TRACING();
|
||||||
OUTPUT_TRACE();
|
OUTPUT_TRACE();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user