Revert "wl_egl: add exception checking to find invalid wl_egl_buffer" 72/314272/1
authorjinbong.lee <jinbong.lee@samsung.com>
Tue, 9 Jul 2024 12:35:50 +0000 (12:35 +0000)
committerjinbong.lee <jinbong.lee@samsung.com>
Tue, 9 Jul 2024 12:41:27 +0000 (12:41 +0000)
commit81cff70ca7676b33cc6e57dd052f97e3efc7807a
tree2457b2407afcc50d5d3026740d6d949f9933f447
parent1841b1210277010b651307ff27d5ac3d3b682fbf
Revert "wl_egl: add exception checking to find invalid wl_egl_buffer"

This reverts commit c74b4ab60aa2a82a66b01fac6125af0566fc73da.
 - That exception check doesn't protected with wl_egl_surface->buffers_mutex.
 - _thread_wl_surface_commit function is called inside of wl_egl_buffer->mutex is locked.
 - It means wl_egl_buffer is available when _thread_wl_surface_commit is called.
 - If wl_egl_surface->buffers_mutex is used inside of wl_egl_buffer->mutex then deadlock will be occurred.

Change-Id: I688f963827590f045bd3f97a7d6298e5281fb6e1
src/tpl_wl_egl_thread.c