From: Joonbum Ko Date: Tue, 11 May 2021 06:08:19 +0000 (+0900) Subject: Fix to prevent thread conflict. X-Git-Tag: submit/tizen/20210511.063731~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31acedf6a32aa0afa005577184731e3986dfdda7;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git Fix to prevent thread conflict. Change-Id: I946bd6bce80a3e6188ff9e6c060abb7634a7e9b0 Signed-off-by: Joonbum Ko --- diff --git a/src/tpl_wl_egl_thread.c b/src/tpl_wl_egl_thread.c index 1f2a63e..7913614 100755 --- a/src/tpl_wl_egl_thread.c +++ b/src/tpl_wl_egl_thread.c @@ -1959,7 +1959,9 @@ __tpl_wl_egl_surface_fini(tpl_surface_t *surface) wl_egl_surface, wl_egl_surface->wl_surface, wl_egl_surface->tbm_queue); + tpl_gmutex_lock(&wl_egl_surface->surf_mutex); _tpl_wl_egl_surface_buffer_clear(wl_egl_surface); + tpl_gmutex_unlock(&wl_egl_surface->surf_mutex); if (wl_egl_surface->surf_source) tpl_gsource_destroy(wl_egl_surface->surf_source, TPL_TRUE);