Block to do not access mTasks from multiple threads 03/310203/1
authorSeungho Baek <sbsh.baek@samsung.com>
Wed, 24 Apr 2024 05:20:09 +0000 (14:20 +0900)
committerSeungho Baek <sbsh.baek@samsung.com>
Wed, 24 Apr 2024 05:32:56 +0000 (14:32 +0900)
commit6eeb61f73dad0d2ebbbf23cb091658130a1c019f
tree304105d6d57a26ad7be3c06f97427d2624a99203
parent3141db6d3fe4fcec09a741626208d9fdddab46b2
Block to do not access mTasks from multiple threads

 - RoundRobinContainerView is not ThreadSafe.
 - If 2 or more Thread call GetNext() method at the same time,
   it can return cend().
 - This patch blocks to do not access mTasks from multiple threads.
 - Blocked code is works for only simple request with O(n).

Change-Id: I134a846cfa04935d4e492f4d3a92c65eaa169261
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
dali/internal/system/common/async-task-manager-impl.cpp
dali/internal/system/common/async-task-manager-impl.h