#ifdef BUILD_ASYNC_PRELOAD
static void
-_evas_cache_image_async_call(Image_Entry *im)
+_evas_cache_image_async_call__unlocked(Image_Entry *im)
{
- pthread_mutex_lock(&mutex);
while (im->targets)
{
Evas_Cache_Target *tmp = im->targets;
im->targets = (Evas_Cache_Target*) eina_inlist_remove(EINA_INLIST_GET(im->targets), EINA_INLIST_GET(im->targets));
free(tmp);
}
+}
+
+static void
+_evas_cache_image_async_call(Image_Entry *im)
+{
+ pthread_mutex_lock(&mutex);
+ _evas_cache_image_async_call__unlocked(im);
pthread_mutex_unlock(&mutex);
}
}
}
} else {
- _evas_cache_image_async_call(ie);
+ _evas_cache_image_async_call__unlocked(ie);
while (ie->targets)
{