Add intended_destroy flag to destroy only when intended. 13/255913/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Wed, 24 Mar 2021 10:48:31 +0000 (19:48 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Wed, 24 Mar 2021 10:48:34 +0000 (19:48 +0900)
commit98e734005b6b0548fc00773f89237d9a27dd4e92
tree0e7166a1c435d045474c2aeaed53a38c62d9b18d
parent44623de646cd885ff3bed81426d374549d556cbc
Add intended_destroy flag to destroy only when intended.

 - G_IO_IN may occur in eventfd of finalizer source due to
  some unexpected errors.
   In this case, if gsource destroyed in unintended,
  a fatal problem may occur in thread.
 - The intended_destroy flag of the newly added to tpl_gsource
  will help the finalizer source to operate normally only if it is
  intended G_IO_IN.

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