From a1b9e95acdb4f419c2f9fd7c064f4782754fb5ae Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Wed, 21 Jul 2021 16:53:14 +0900 Subject: [PATCH] Remove unnecessary surf_mutex locking - This surf_mutex locking in buffer_clear can occur deadlock problem. Change-Id: Ibd4fc7ff312c4ab96aa0db6c69d217979cac9622 Signed-off-by: Joonbum Ko --- src/tpl_wl_egl_thread.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/tpl_wl_egl_thread.c b/src/tpl_wl_egl_thread.c index 05f5789..819fe1a 100755 --- a/src/tpl_wl_egl_thread.c +++ b/src/tpl_wl_egl_thread.c @@ -1978,8 +1978,6 @@ _tpl_wl_egl_surface_buffer_clear(tpl_wl_egl_surface_t *wl_egl_surface) } } - tpl_gmutex_lock(&wl_egl_surface->surf_mutex); - status = wl_egl_buffer->status; /* update status */ /* ACQUIRED, WAITING_SIGNALED, WAITING_VBLANK, COMMITTED */ @@ -2007,8 +2005,6 @@ _tpl_wl_egl_surface_buffer_clear(tpl_wl_egl_surface_t *wl_egl_surface) wl_egl_buffer->tbm_surface, tsq_err); } - tpl_gmutex_unlock(&wl_egl_surface->surf_mutex); - wl_egl_buffer->status = RELEASED; tpl_gmutex_unlock(&wl_egl_buffer->mutex); -- 2.7.4