- There are often cases where scheduling is not received
for more than 200ms in unexpectable situations such as cpu contension.
- Since wait_idle is called in parts where synchronization is absolutely necessary,
it is necessary to minimize the problem by increasing it to 500ms.
Change-Id: I2844a5700f12a77668df526ce65bd5d6f486b56a
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
return G_SOURCE_REMOVE;
}
+#define WAIT_IDLE_TIMEOUT 500
+
tpl_result_t
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(>hread->idle_cond,
>hread->idle_mutex,