utils_gthread: Change to use g_cond_wait_until to wait idle 26/284926/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Wed, 30 Nov 2022 04:47:29 +0000 (13:47 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Thu, 1 Dec 2022 04:38:54 +0000 (13:38 +0900)
commit683cb03f054706bf18ddf2ef651029f6deaf7e1d
treeecee9119a1ecccfd99c7eedcf0a658824d7f25bc
parentd2ec1c55bf009b92aef952e43f421bee3e8c9302
utils_gthread: Change to use g_cond_wait_until to wait idle

 - In some cases, signal was sent by idle_callback but
  there is a problem that this signal is lost and g_cond_wait
  cannot be awakened.

 - Above case can cause deadlock problem.

 - So set 200ms timeout ms with using g_cond_wait_until instead of
  g_cond_wait.

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