[evas_cache_image.c] Added a lock around eina_condition_broadcast() in
authorRajeev Ranjan <rajeev.r@samsung.com>
Thu, 20 Jun 2013 12:04:38 +0000 (21:04 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Thu, 27 Jun 2013 04:21:59 +0000 (13:21 +0900)
function evas_cache_image_wakeup to handle a rare lockup scenario in evas.

Change-Id: Ied58c5b539f651709aeb89cc8fe36862792f1e49

src/lib/cache/evas_cache_image.c

index 4a6f04c..816bea6 100755 (executable)
@@ -1245,6 +1245,10 @@ evas_cache_image_wakeup(void)
 {
 #ifdef BUILD_ASYNC_PRELOAD
    if (_evas_cache_mutex_init > 0)
-     eina_condition_broadcast(&cond_wakeup);
+     {
+        LKL(wakeup);
+        eina_condition_broadcast(&cond_wakeup);
+        LKU(wakeup);
+     }
 #endif
 }