Added argument to function tpl_gsource_destroy 71/254771/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Tue, 5 Jan 2021 04:04:29 +0000 (13:04 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Tue, 9 Mar 2021 08:45:14 +0000 (17:45 +0900)
commit1c98c9ca0d023e6c5d0172b5dcf5750e466ffb8f
treeb20388fd0a953c0c21bae822b04ed7709a7ba8ab
parent8b70dc9962c7a6107e71e3bd43e69b83859680a3
Added argument to function tpl_gsource_destroy

 - In an exceptional situation, there are cases where
  tpl_gsource_destroy should be called inside gthread.
 - In this case, if a source whose type is SOURCE_TYPE_NORMAL
  tries to destroy through finalizer, deadlock may occur.
   Therefore, when destroying in the same thread,
  destroy_in_thread must be set to FALSE.

Change-Id: I53a7b376f6cc12fbab12ec6d7bf6cc8e812eaa87
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_utils_gthread.c
src/tpl_utils_gthread.h
src/tpl_wl_egl.c