whoops
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 23 Jul 2010 16:40:40 +0000 (16:40 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 23 Jul 2010 16:40:40 +0000 (16:40 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@50455 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/Ecore.h
src/lib/ecore/ecore_thread.c

index a8caf90..3fd5a8f 100644 (file)
@@ -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);
index d38e805..26a79ec 100644 (file)
@@ -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