tpl: Modify tpl_gcond_timed_wait() 81/318881/1
authorTaeHyeon Jeong <thyeon.jeong@samsung.com>
Thu, 10 Oct 2024 05:39:35 +0000 (14:39 +0900)
committerTaeHyeon Jeong <thyeon.jeong@samsung.com>
Thu, 10 Oct 2024 09:00:10 +0000 (18:00 +0900)
commit65c6b2c5087460b111404ce35cc81f996fe3ae48
tree1985e697ca770603d063f88b7c95880b5b31f710
parent149e40cf513fc93f88d308f96f686faacd788861
tpl: Modify tpl_gcond_timed_wait()

AS-IS
- Calculate the end_time for g_cond_wait_until() in  tpl_gcond_timed_wait().

PROBLEM
- When a spurious wakeup occurs, the end_time is recalculated. so, it may wait longer than expected waiting time.

TO-BE
- Calculating the end_time is performed only once.

Change-Id: Ia7c85e94549469ce3feae4b47b75945e23b7c88d
src/tpl_utils_gthread.c
src/tpl_utils_gthread.h
src/tpl_wl_egl_thread.c
src/tpl_wl_vk_thread.c