forked from enlightenment/efl
eina: Fix broken main loop thread check
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> SVN revision: 63263
This commit is contained in:
parent
dc8149ce0d
commit
81ce922044
|
@ -79,7 +79,7 @@ static inline Eina_Lock_Result eina_rwlock_release(Eina_RWLock *mutex);
|
||||||
#ifdef EINA_HAVE_DEBUG_THREADS
|
#ifdef EINA_HAVE_DEBUG_THREADS
|
||||||
# define EINA_MAIN_LOOP_CHECK_RETURN_VAL(val) \
|
# define EINA_MAIN_LOOP_CHECK_RETURN_VAL(val) \
|
||||||
do { \
|
do { \
|
||||||
if (EINA_UNLIKELY(eina_main_loop_is())) \
|
if (EINA_UNLIKELY(!eina_main_loop_is())) \
|
||||||
{ \
|
{ \
|
||||||
eina_error_set(EINA_ERROR_NOT_MAIN_LOOP); \
|
eina_error_set(EINA_ERROR_NOT_MAIN_LOOP); \
|
||||||
EINA_LOG_ERR("You are calling %s from outside" \
|
EINA_LOG_ERR("You are calling %s from outside" \
|
||||||
|
@ -92,7 +92,7 @@ static inline Eina_Lock_Result eina_rwlock_release(Eina_RWLock *mutex);
|
||||||
} while (0)
|
} while (0)
|
||||||
# define EINA_MAIN_LOOP_CHECK_RETURN \
|
# define EINA_MAIN_LOOP_CHECK_RETURN \
|
||||||
do { \
|
do { \
|
||||||
if (EINA_UNLIKELY(eina_main_loop_is())) \
|
if (EINA_UNLIKELY(!eina_main_loop_is())) \
|
||||||
{ \
|
{ \
|
||||||
eina_error_set(EINA_ERROR_NOT_MAIN_LOOP); \
|
eina_error_set(EINA_ERROR_NOT_MAIN_LOOP); \
|
||||||
EINA_LOG_ERR("You are calling %s from outside" \
|
EINA_LOG_ERR("You are calling %s from outside" \
|
||||||
|
|
Loading…
Reference in New Issue