jpeg pushed a commit to branch master.

commit a1a1a931755b448aeaa6b7307ce4beca674ef074
Author: Jean-Philippe Andre <>
Date:   Tue Jul 28 15:49:47 2015 +0900

    Ecore: Fix invalid lock count if DEBUG is enabled
    With -DDEBUG, we can see an error message, like:
    ERR: You are calling _ecore_lock() from outside of the main loop
         threads in lib/ecore/ecore_private at line 306
    Looking at the code shows that ecore_lock fails immediately if
    thread debugging is enabled, but ecore_unlock does not, so the
    value _ecore_main_lock_count could go below 0.
    This is not very important as the value is never used.
 src/lib/ecore/ecore_private.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lib/ecore/ecore_private.h b/src/lib/ecore/ecore_private.h
index 89f6013..a8676a2 100644
--- a/src/lib/ecore/ecore_private.h
+++ b/src/lib/ecore/ecore_private.h
@@ -312,6 +312,10 @@ _ecore_lock(void)
 static inline void
+   /* see _ecore_lock(); no-op unless EINA_HAVE_DEBUG_THREADS is defined */
    /* assert(_ecore_main_lock_count == 0); */


Reply via email to