forked from enlightenment/efl
ecore: fix usage eina_condition_timedwait to use relative time instead of absolute time.
This could lead to some very long and unexpected pause as the timeout passed to eina_condition_timedwait was passed as a absolute time instead of relative. Hopefully we don't build rocket.
This commit is contained in:
parent
63634ccd30
commit
c4117cdae4
|
@ -1398,7 +1398,7 @@ ecore_thread_global_data_wait(const char *key,
|
|||
if ((ret) || (!seconds) || ((seconds > 0) && (tm <= ecore_time_get())))
|
||||
break;
|
||||
LKL(_ecore_thread_global_hash_mutex);
|
||||
CDW(_ecore_thread_global_hash_cond, tm);
|
||||
CDW(_ecore_thread_global_hash_cond, tm - ecore_time_get());
|
||||
LKU(_ecore_thread_global_hash_mutex);
|
||||
}
|
||||
if (ret) return ret->data;
|
||||
|
|
Loading…
Reference in New Issue