git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@59394
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
{
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;
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 *