tpl_wayland_egl_thread: Added assert case to detect abnomalies. 39/196339/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Thu, 27 Dec 2018 07:59:18 +0000 (16:59 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Thu, 27 Dec 2018 07:59:21 +0000 (16:59 +0900)
commit497be89fe5ed0b7003c913ab3a70cdafcdb3ab47
tree8abe677837b502dfd7a28313f7a289f0a7e8276c
parent76de5fa2752ad13a4404c6d3d7f74e255c7c9453
tpl_wayland_egl_thread: Added assert case to detect abnomalies.

 - In the twe thread, the event fd being poll must be
  woken up only with G_IO_IN.
 - However, if some problem occurs in fd, it can wake up with
  G_IO_ERR, G_IO_HUP, G_IO_NVAL, and try dispatch.
   In this case, it is difficult to predict the situation after G_SOURCE_REMOVE,
  so ASSERT should be used to find the time when the problem occurs.
 - If there is no ASSERT () or remove, g_main_loop will repeatedly
  wake up and try to dispatch the source, causing a problem of making CPU usage high.

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