is the patch below good ?

Vincent

Index: src/lib/cache/evas_cache_image.c
===================================================================
--- src/lib/cache/evas_cache_image.c    (revision 59392)
+++ src/lib/cache/evas_cache_image.c    (working copy)
@@ -557,12 +557,14 @@
  {
     Evas_Cache_Image *cache;

+#ifdef BUILD_ASYNC_PRELOAD
     if (_evas_cache_mutex_init++ == 0)
       {
          LKI(engine_lock);
          LKI(wakeup);
        eina_condition_new(&cond_wakeup, &wakeup);
       }
+#endif

     cache = calloc(1, sizeof(Evas_Cache_Image));
     if (!cache) return NULL;
@@ -657,12 +659,14 @@
     eina_hash_free(cache->inactiv);
     free(cache);

+#ifdef BUILD_ASYNC_PRELOAD
     if (--_evas_cache_mutex_init == 0)
       {
        eina_condition_free(&cond_wakeup);
          LKD(engine_lock);
          LKD(wakeup);
       }
+#endif
  }

  EAPI Image_Entry *


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to