}
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() +
* @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()
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);
"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) {
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);