aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-10-14 10:57:53 -0700
committerCedric BAIL <cedric@osg.samsung.com>2015-10-14 11:03:21 -0700
commitc4117cdae4ad0f03d3b4d4683ad93511423f65eb (patch)
treee305a0401a890fff5aac64db877350ce2a9704e5
parentevas filter: silent coverity on self assignment (diff)
downloadefl-c4117cdae4ad0f03d3b4d4683ad93511423f65eb.tar.gz
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.
Notes
-rw-r--r--src/lib/ecore/ecore_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore/ecore_thread.c b/src/lib/ecore/ecore_thread.c
index f1aa613c73..befb0fb3c9 100644
--- a/src/lib/ecore/ecore_thread.c
+++ b/src/lib/ecore/ecore_thread.c
@@ -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;