tpl_wayland_egl_thread: Added APIs for thread safety during event processing. 72/135172/4
authorjoonbum.ko <joonbum.ko@samsung.com>
Thu, 25 May 2017 04:27:16 +0000 (13:27 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 22 Jun 2017 08:55:59 +0000 (08:55 +0000)
commitc3062c0e0f8d5cf1828c8defbb864bd382ae76ec
tree60e2f1b40f9b03764db3867721bcbf43a7953abc
parent2261c2f859630549ebb65388f900760973fe97e8
tpl_wayland_egl_thread: Added APIs for thread safety during event processing.

 - If a new event is handled in the worker_thread while processing
  the dequeue process in the main thread, it can cause problems.
 - Thread safety must be guaranteed in the part that uses
  the same resource (tbm_surface_queue) between threads.

 - Added APIs
 twe_display_lock / twe_display_unlock

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