Fix the race condition issue of RenderOnce() in GlWindow 89/253289/2
authorWonsik Jung <sidein@samsung.com>
Mon, 8 Feb 2021 10:13:26 +0000 (19:13 +0900)
committerWonsik Jung <sidein@samsung.com>
Thu, 11 Mar 2021 10:00:08 +0000 (19:00 +0900)
commit5508ece5377c75154067c8203e31a12d154a2ec0
treef8ee11ac18a109d482b8782c49c8b188ca601f72
parent85dfef235d3e983cbef23918991b864f8770d7bc
Fix the race condition issue of RenderOnce() in GlWindow

Fix the race condition issue of RenderOnce() in GlWindow.
If RenderOnce() function is called in event thread continuously,
the race condition issue will be occured.
Because the renderOnce flag is written in event thread
and the flag is read and written in render thread without lock.
This patch is to fix the issue.

Change-Id: I0a45c0e538c19b9c552d75fd1cf1e2ca4cbd042a
dali/internal/window-system/common/gl-window-render-thread.cpp