* evas: remove lock during heavy computation.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 24 Mar 2010 14:45:58 +0000 (14:45 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 24 Mar 2010 14:45:58 +0000 (14:45 +0000)
FIXME: Still one at line 685, but don't know if it's safe to move it around.

TODO: Fix map support with threaded rendering.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@47426 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_image_scalecache.c

index f0f1ef8..a115873 100644 (file)
@@ -471,6 +471,7 @@ evas_common_rgba_image_scalecache_do(Image_Entry *ie, RGBA_Image *dst,
           evas_cache_image_load_data(&im->cache_entry);
         evas_common_image_colorspace_normalize(im);
 //        noscales++;
+        LKU(im->cache.lock);
         if (im->image.data)
           {
              if (smooth)
@@ -486,7 +487,6 @@ evas_common_rgba_image_scalecache_do(Image_Entry *ie, RGBA_Image *dst,
                                                             dst_region_x, dst_region_y, 
                                                             dst_region_w, dst_region_h);
           }
-        LKU(im->cache.lock);
         return;
      }
    LKL(cache_lock);