cache->func.surface_delete(ie);
#ifdef BUILD_ASYNC_PRELOAD
- pthread_mutex_destroy(&ie->lock);
+ LKD(ie->lock);
#endif
cache->func.dealloc(ie);
ie->scale = 1;
#ifdef BUILD_ASYNC_PRELOAD
- pthread_mutex_init(&ie->lock, NULL);
+ LKI(ie->lock);
ie->targets = NULL;
#endif
/* We check a first time, to prevent useless lock. */
_evas_cache_image_entry_preload_remove(im, NULL);
if (im->flags.loaded) return ;
- pthread_mutex_lock(&im->lock);
+ LKL(im->lock);
#endif
error = cache->func.load(im);
#ifdef BUILD_ASYNC_PRELOAD
- pthread_mutex_unlock(&im->lock);
+ LKU(im->lock);
#endif
if (cache->func.debug)
Evas_Cache_Image *cache;
int error;
- pthread_mutex_lock(¤t->lock);
+ LKL(current->lock);
cache = current->cache;
error = cache->func.load(current);
current->flags.preload = 0;
- pthread_mutex_unlock(¤t->lock);
+ LKU(current->lock);
_evas_cache_image_async_call(current);
current = NULL;