cedric pushed a commit to branch master.

commit 12458544d1de8981ca8396f3532eb4a020dbada7
Author: Rajeev Ranjan <[email protected]>
Date:   Mon Jun 24 11:50:08 2013 +0900

    evas: add mutex locking before signalling for the condition variable and 
releasing afterwards.
    
    Signed-off-by: Cedric Bail <[email protected]>
---
 src/lib/evas/cache/evas_cache_image.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/evas/cache/evas_cache_image.c 
b/src/lib/evas/cache/evas_cache_image.c
index 06d74de..fd8af53 100644
--- a/src/lib/evas/cache/evas_cache_image.c
+++ b/src/lib/evas/cache/evas_cache_image.c
@@ -1389,5 +1389,9 @@ EAPI void
 evas_cache_image_wakeup(void)
 {
    if (_evas_cache_mutex_init > 0)
-     eina_condition_broadcast(&cond_wakeup);
+     {
+        LKL(wakeup);
+        eina_condition_broadcast(&cond_wakeup);
+        LKU(wakeup);
+     }
 }

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to