Lock mutex when animation task check + completed task moving 72/315172/4
authorEunki, Hong <eunkiki.hong@samsung.com>
Fri, 26 Jul 2024 05:08:12 +0000 (14:08 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 29 Jul 2024 04:06:39 +0000 (13:06 +0900)
commitc89821e2838bdbb35bd287350bc91f42fa22758e
tree7f5cd5e1ce4a362151f8f7704584ee54ef5049a7
parent75606dc1f41847d2827683054bc1514280b5344a
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