From 62a630689eb0d4dd6974311f5aa024f1c89f54e7 Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Thu, 29 Sep 2022 20:45:42 +0900 Subject: [PATCH] Changed the function name properly. tpl_cond_timed_wait -> tpl_gcond_timed_wait Change-Id: Iebe13b6aa7598d652cf3b5968dbc7b2bb96a44e0 Signed-off-by: Joonbum Ko --- src/tpl_utils_gthread.c | 2 +- src/tpl_utils_gthread.h | 2 +- src/tpl_wl_egl_thread.c | 4 ++-- src/tpl_wl_vk_thread.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tpl_utils_gthread.c b/src/tpl_utils_gthread.c index 20b6838..20bab7f 100644 --- a/src/tpl_utils_gthread.c +++ b/src/tpl_utils_gthread.c @@ -431,7 +431,7 @@ tpl_gcond_wait(tpl_gcond *gcond, tpl_gmutex *gmutex) } tpl_result_t -tpl_cond_timed_wait(tpl_gcond *gcond, tpl_gmutex *gmutex, +tpl_gcond_timed_wait(tpl_gcond *gcond, tpl_gmutex *gmutex, int64_t timeout_ms) { gint64 end_time = g_get_monotonic_time() + diff --git a/src/tpl_utils_gthread.h b/src/tpl_utils_gthread.h index 0237f40..8185cab 100644 --- a/src/tpl_utils_gthread.h +++ b/src/tpl_utils_gthread.h @@ -191,7 +191,7 @@ tpl_gcond_wait(tpl_gcond *gcond, tpl_gmutex *gmutex); * @return tpl_result_t TPL_ERROR_NONE or TPL_ERROR_TIME_OUT */ tpl_result_t -tpl_cond_timed_wait(tpl_gcond *gcond, tpl_gmutex *gmutex, int64_t timeout_ms); +tpl_gcond_timed_wait(tpl_gcond *gcond, tpl_gmutex *gmutex, int64_t timeout_ms); /** * wrapping g_cond_signal() diff --git a/src/tpl_wl_egl_thread.c b/src/tpl_wl_egl_thread.c index 9fd1e8a..f6c0375 100755 --- a/src/tpl_wl_egl_thread.c +++ b/src/tpl_wl_egl_thread.c @@ -2117,7 +2117,7 @@ _tpl_wl_egl_surface_buffer_clear(tpl_wl_egl_surface_t *wl_egl_surface) if (need_to_wait) { tpl_gmutex_unlock(&wl_egl_display->wl_event_mutex); - wait_result = tpl_cond_timed_wait(&wl_egl_buffer->cond, + wait_result = tpl_gcond_timed_wait(&wl_egl_buffer->cond, &wl_egl_buffer->mutex, 200); /* 200ms */ tpl_gmutex_lock(&wl_egl_display->wl_event_mutex); @@ -2551,7 +2551,7 @@ __tpl_wl_egl_surface_dequeue_buffer(tpl_surface_t *surface, uint64_t timeout_ns, "waiting for previous wl_egl_buffer(%p) commit", enqueued_buffer); - wait_result = tpl_cond_timed_wait(&enqueued_buffer->cond, + wait_result = tpl_gcond_timed_wait(&enqueued_buffer->cond, &enqueued_buffer->mutex, 200); /* 200ms */ if (wait_result == TPL_ERROR_TIME_OUT) { diff --git a/src/tpl_wl_vk_thread.c b/src/tpl_wl_vk_thread.c index 7e0e621..884e7c7 100644 --- a/src/tpl_wl_vk_thread.c +++ b/src/tpl_wl_vk_thread.c @@ -1049,7 +1049,7 @@ _tpl_wl_vk_surface_buffer_clear(tpl_wl_vk_surface_t *wl_vk_surface) if (need_to_wait) { tpl_gmutex_unlock(&wl_vk_display->wl_event_mutex); - wait_result = tpl_cond_timed_wait(&wl_vk_buffer->cond, + wait_result = tpl_gcond_timed_wait(&wl_vk_buffer->cond, &wl_vk_buffer->mutex, 16); /* 16ms */ tpl_gmutex_lock(&wl_vk_display->wl_event_mutex); -- 2.34.1