[UI Thread] Fix undefnied behavior of g_rec_mutex_clear() 38/273938/2
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 18 Apr 2022 10:20:39 +0000 (19:20 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 18 Apr 2022 10:30:47 +0000 (19:30 +0900)
commit064733bb9ee149652d546276708b2d3c5a816f53
treeb0f91ceb1764cc2c640c3e42ba0f3e1fc1ec4a48
parente363b16985fcbab1a4f1514631401b71d582e8b6
[UI Thread] Fix undefnied behavior of g_rec_mutex_clear()

If an application uses UI thread feature, the aul_launch_fini() function
can be invoked each threads. In that time, the race condition about
g_rec_mutex_clear() can be occurred. This patch initializes the
recursive mutex in the constructor to prevent the issue.

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