Changed the function name properly. 03/282303/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Thu, 29 Sep 2022 11:45:42 +0000 (20:45 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Thu, 29 Sep 2022 11:57:15 +0000 (20:57 +0900)
 tpl_cond_timed_wait -> tpl_gcond_timed_wait

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

index 20b6838..20bab7f 100644 (file)
@@ -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() +
index 0237f40..8185cab 100644 (file)
@@ -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()
index 9fd1e8a..f6c0375 100755 (executable)
@@ -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) {
index 7e0e621..884e7c7 100644 (file)
@@ -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);