Ecore: Fix shadow declaration of variable 'time'.
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 27 May 2011 02:06:26 +0000 (02:06 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 27 May 2011 02:06:26 +0000 (02:06 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@59720 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_thread.c

index 8932e75..682fdcc 100644 (file)
@@ -785,10 +785,10 @@ _ecore_thread_shutdown(void)
    /* Improve emergency shutdown */
    EINA_LIST_FREE(_ecore_active_job_threads, pth)
      {
-        Ecore_Pipe *p;
+        Ecore_Pipe *ep;
 
         PHA(pth->thread);
-        PHJ(pth->thread, p);
+        PHJ(pth->thread, ep);
 
         ecore_pipe_del(pth->p);
      }
@@ -1741,33 +1741,34 @@ ecore_thread_global_data_del(const char *key)
 EAPI void *
 ecore_thread_global_data_wait(const char *key, double seconds)
 {
-   double time = 0;
+   double tm = 0;
    Ecore_Thread_Data *ret = NULL;
+
    if (!key)
      return NULL;
 #ifdef EFL_HAVE_THREADS
    if (!_ecore_thread_global_hash)
      return NULL;
    if (seconds > 0)
-     time = ecore_time_get() + seconds;
+     tm = ecore_time_get() + seconds;
 
    while (1)
      {
 #ifndef _WIN32
         struct timespec t = { 0, 0 };
 
-        t.tv_sec = (long int)time;
-        t.tv_nsec = (long int)((time - (double)t.tv_sec) * 1000000000);
+        t.tv_sec = (long int)tm;
+        t.tv_nsec = (long int)((tm - (double)t.tv_sec) * 1000000000);
 #else
         struct timeval t = { 0, 0 };
 
-        t.tv_sec = (long int)time;
-        t.tv_usec = (long int)((time - (double)t.tv_sec) * 1000000);
+        t.tv_sec = (long int)tm;
+        t.tv_usec = (long int)((tm - (double)t.tv_sec) * 1000000);
 #endif
         LRWKRL(_ecore_thread_global_hash_lock);
         ret = eina_hash_find(_ecore_thread_global_hash, key);
         LRWKU(_ecore_thread_global_hash_lock);
-        if ((ret) || (!seconds) || ((seconds > 0) && (time <= ecore_time_get())))
+        if ((ret) || (!seconds) || ((seconds > 0) && (tm <= ecore_time_get())))
           break;
         LKL(_ecore_thread_global_hash_mutex);
         CDW(_ecore_thread_global_hash_cond, _ecore_thread_global_hash_mutex, &t);