Synchronize worker thread 92/211892/2
authorHwankyu Jhun <h.jhun@samsung.com>
Sat, 10 Aug 2019 17:05:36 +0000 (02:05 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Sun, 11 Aug 2019 04:08:06 +0000 (13:08 +0900)
commit808f2a4265782f3161d64e794db3e8b9a7930445
tree8c5a7e4bc7faba21adaa62b1eb647fed3c20e7a4
parente758bc30ba7b74e2e75528494893bbd9a2e330ec
Synchronize worker thread

There is a problem that the worker thread does not terminte when the main thread
terminates quickly. To terminate the worker thread properly, this patch uses
g_cond_wait() and g_cond_signal().

Change-Id: I9662b9124815fe0db777d074d65aa62cc14dec40
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
include/aul_worker.h
src/aul_worker.c