From: joonbum.ko Date: Fri, 1 Sep 2017 02:06:18 +0000 (+0900) Subject: tpl_wayland_egl_thread: Added object lock/unlock at the time of in_use_buffer list... X-Git-Tag: accepted/tizen/4.0/unified/20170907.193730~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06cea2dacfe3c3dd97482d3c89c7ab03e3b48cef;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git tpl_wayland_egl_thread: Added object lock/unlock at the time of in_use_buffer list finalizing. Change-Id: I9e6d3ae6fea8df6caa4fc2ffba7d7ce348408d2c Signed-off-by: joonbum.ko --- diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 5cbe4c8..d0f9bb2 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -1679,7 +1679,10 @@ twe_surface_del(twe_surface_h twe_surface) sched_yield(); } + TPL_OBJECT_LOCK(&surf_source->obj); __tpl_list_free(surf_source->in_use_buffers, NULL); + TPL_OBJECT_UNLOCK(&surf_source->obj); + surf_source->in_use_buffers = NULL; TPL_OBJECT_LOCK(&disp_source->obj);