utils_gthread: do not make data into NULL before the source is destroyed 16/295916/2
authorJoonbum Ko <joonbum.ko@samsung.com>
Mon, 17 Jul 2023 07:35:16 +0000 (16:35 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Mon, 17 Jul 2023 08:26:58 +0000 (17:26 +0900)
commit027671a01d9be088aa65759758ded4a5e210b106
tree247bba284f70994b8b693aae0991302a0dee5897
parent4ae1d9a7e5bed1845ca6fc20eaafa86e2ecc9d43
utils_gthread: do not make data into NULL before the source is destroyed

 - Even if thread call the g_source_destroy & unref it, it may not be destroyed
  immediately. (waiting for dispatch in g_main_context)
 - source->data will be changed to NULL only when it destroyed perfectly.

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