openharmony-standard: Workaround for race condition in ace engine
When starting up abilities, there is a race condition between OnSurfaceChanged
and RunPage, which both are executed as PostTask on the same task executor.
This executor works in FIFO mode, and if (when) the OnSurfaceChanged comes
first, it will fail with a nullptr check on runningPage_. This is because the
runningPage_ variable is set by the RunPage PostTask.
This patch is obviously just a workaround, and not a proper fix. Hopefully, 500
ms will be enough in all relevant situations, but at least in theory, the
problem can still appear.
Signed-off-by:
Esben Haabendal <esben@geanix.com>
parent
312c51f4
No related branches found
No related tags found
Showing
- recipes-openharmony/openharmony/openharmony-standard-3.0/foundation_ace_engine-race-condition-workaround.patch 38 additions, 0 deletions...3.0/foundation_ace_engine-race-condition-workaround.patch
- recipes-openharmony/openharmony/openharmony-standard_3.0.bb 1 addition, 0 deletionsrecipes-openharmony/openharmony/openharmony-standard_3.0.bb
Please register or sign in to comment