Ensure to check whether task need to callback or not 58/303458/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 28 Dec 2023 04:37:15 +0000 (13:37 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 28 Dec 2023 04:42:12 +0000 (13:42 +0900)
commit494f6f3e07fbc79b3d2ab8b6c3143eb0bcbaebee
tree6daadd502095c49eb353e158bdb1048121d519f6
parent9e0d3988087d706cc46097524d460fb0bdb265f1
Ensure to check whether task need to callback or not

There was short-term to unlock the mRunningTasksMutex.
If main thread Remove the running task (mean, cancel) during
that mutex unlocked, we just keep know that
this task need to execute callback.

So, we need to check for notify or not only for lottie cases,
and check main thread callback required one more time for main thread cases.

Change-Id: I8e6bdcdf4b8bf290a23b5b8e3fdb1821db26d393
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/system/common/async-task-manager-impl.cpp