[Tizen] Lock mutex when animation task check + completed task moving 21/315821/2 accepted/tizen/7.0/unified/20240809.085620
authorEunki, Hong <eunkiki.hong@samsung.com>
Fri, 26 Jul 2024 05:08:12 +0000 (14:08 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 8 Aug 2024 05:43:47 +0000 (14:43 +0900)
commitc0b7a2b412c5e233e94d96bc7573bc6380ad7a8b
treeebbcee5879e1f18b73517953f01bff2ebfc62a30
parentabc395e04af2921ee31991004ac91401ca0bbb40
[Tizen] Lock mutex when animation task check + completed task moving

Since VectorAnimationThread::OnTaskCompleted() could be called
from various worker threads, we should not change the thread's member value.

To avoid this kind of thread issue,
 - Make mutex during animation tasks control (VectorAnimationThread vs EventThread)
 - Collect tasks from worker thread and move them at Rasterize() API (VectorAnimationThread vs WorkerThread)

Change-Id: Ib3dce6b98f6c66a3bd597a7b46fe8bbac60105b5
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-toolkit/internal/visuals/animated-vector-image/vector-animation-thread.cpp
dali-toolkit/internal/visuals/animated-vector-image/vector-animation-thread.h