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:
Cedric BAIL 2015-10-14 10:57:53 -07:00
parent 63634ccd30
commit c4117cdae4
1 changed files with 1 additions and 1 deletions

View File

@ -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;