change wait_idle timeout from 200ms to 500ms
[platform/core/uifw/libtpl-egl.git] / src / tpl_utils_gthread.c
index b4b78cf..c744b5b 100644 (file)
@@ -502,6 +502,8 @@ _thread_idle_cb(gpointer data)
        return G_SOURCE_REMOVE;
 }
 
+#define WAIT_IDLE_TIMEOUT 500
+
 tpl_result_t
 tpl_gthread_wait_idle(tpl_gthread *gthread)
 {
@@ -531,7 +533,7 @@ tpl_gthread_wait_idle(tpl_gthread *gthread)
 
        /* 200ms timeout */
        end_time = g_get_monotonic_time() +
-                               (200 * G_TIME_SPAN_MILLISECOND);
+                               (WAIT_IDLE_TIMEOUT * G_TIME_SPAN_MILLISECOND);
        do {
                ret = g_cond_wait_until(&gthread->idle_cond,
                                                                &gthread->idle_mutex,