tpl_wl_egl_thread: Implemented force_flush to use can_dequeue_wait_timeout.
authorJoonbum Ko <joonbum.ko@samsung.com>
Fri, 28 Dec 2018 07:37:25 +0000 (16:37 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Fri, 28 Dec 2018 09:16:17 +0000 (18:16 +0900)
commit046bd77d08dfebd800bc1df1b5678ab88d74abb1
treefc9d399dad12b4ade725bc5ea224441b8312620a
parent497be89fe5ed0b7003c913ab3a70cdafcdb3ab47
tpl_wl_egl_thread: Implemented force_flush to use can_dequeue_wait_timeout.

 - This is a patch to solve the problem of blocking in tbm_surface_queue_can_dequeue()
  if release_event is missing due to wayland socket or server logic problem.
 - If TBM_SURFACE_QUEUE_ERROR_TIMEOUT occurs, new buffers are allocated
  to escape blocking without waiting for buffer release events.

Change-Id: I883c65b3af3cfa66336f4301628614ede0b421a7
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c
src/tpl_wayland_egl_thread.h
src/tpl_wl_egl_thread.c