From 9483395af48830e4063bc192ac901405769aace5 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Fri, 23 Jul 2010 16:40:40 +0000 Subject: [PATCH] whoops git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@50455 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore/Ecore.h | 1 + src/lib/ecore/ecore_thread.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore/Ecore.h b/src/lib/ecore/Ecore.h index a8caf90..3fd5a8f 100644 --- a/src/lib/ecore/Ecore.h +++ b/src/lib/ecore/Ecore.h @@ -365,6 +365,7 @@ extern "C" { const void *value); EAPI void *ecore_thread_pool_data_find(Ecore_Thread *thread, const char *key); EAPI Eina_Bool ecore_thread_pool_data_del(Ecore_Thread *thread, const char *key); + EAPI void *ecore_thread_pool_data_wait(Ecore_Thread *thread, const char *key, double seconds); EAPI Eina_Bool ecore_thread_global_data_add(const char *key, const void *value, Eina_Bool direct); diff --git a/src/lib/ecore/ecore_thread.c b/src/lib/ecore/ecore_thread.c index d38e805..26a79ec 100644 --- a/src/lib/ecore/ecore_thread.c +++ b/src/lib/ecore/ecore_thread.c @@ -935,7 +935,7 @@ ecore_thread_pool_data_del(Ecore_Thread *thread, const char *key) * Use @p seconds to specify the amount of time to wait. Use > 0 for an actual wait time, 0 to not wait, and < 0 to wait indefinitely. */ EAPI void * -ecore_thread_pool_data_wait(const char *key, double seconds) +ecore_thread_pool_data_wait(Ecore_Thread *thread, const char *key, double seconds) { double time = 0; void *ret; @@ -949,7 +949,7 @@ ecore_thread_pool_data_wait(const char *key, double seconds) while (1) { - ret = eina_hash_find(thread->hash, key); + ret = eina_hash_find(worker->hash, key); if ((ret) || (!seconds) || ((seconds > 0) && (time <= ecore_time_get()))) break; //try to sleep for a reasonable amount of time -- 2.7.4