Trigger main thread if worker thread task completed 27/298727/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 13 Sep 2023 04:30:16 +0000 (13:30 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 13 Sep 2023 05:51:34 +0000 (14:51 +0900)
commit55f1c9607d9a43b6d0a52dc40de5f89a2797757b
treef75e7be3d657a48836a3129e2945c72e7a992992
parentfa55b8748be0fdddca4c930b207f9bfd66666335
Trigger main thread if worker thread task completed

Since we destruct AsyncTask only on main thread,
it may collects too much AsyncTasks on complete tasks.

To avoid stacking the tasks, let we trigger the callback forcely
if the number of complete tasks is big enough.

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