tizen 2.3 returns ecore_timer or idler even though ecore_timer_add or ecore_job_add called outside of mainloop.
so we add error message to give chance for application to remove wrnog code (call ecore function outside mainloop)
but this can hide the problem and make it hard to know what is real problem.
so if application see the error message, they should their code.
Change-Id: Ib42dfeb5dc30255e40fee5e791523e1108764f2a
{
if (EINA_UNLIKELY(!eina_main_loop_is()))
{
+// TIZEN_ONLY(20150810): Add multi thread error message
+ ERR("You are calling %s from outside of the main loop threads. Program cannot run nomally", __FUNCTION__);
+//
EINA_MAIN_LOOP_CHECK_RETURN_VAL(EINA_FALSE);
}
{
if (EINA_UNLIKELY(!eina_main_loop_is()))
{
+// TIZEN_ONLY(20150810): Add multi thread error message
+ ERR("You are calling %s from outside of the main loop threads. Program cannot run nomally", __FUNCTION__);
+//
EINA_MAIN_LOOP_CHECK_RETURN_VAL(EINA_FALSE);
}
_ecore_lock();
if (EINA_UNLIKELY(!eina_main_loop_is()))
{
+// TIZEN_ONLY(20150810): Add multi thread error message
+ ERR("You are calling %s from outside of the main loop threads. Program cannot run nomally", __FUNCTION__);
+//
EINA_MAIN_LOOP_CHECK_RETURN;
}
{
if (EINA_UNLIKELY(!eina_main_loop_is()))
{
+// TIZEN_ONLY(20150810): Add multi thread error message
+ ERR("You are calling %s from outside of the main loop threads. Program cannot run nomally", __FUNCTION__);
+//
EINA_MAIN_LOOP_CHECK_RETURN;
}
{
if (EINA_UNLIKELY(!eina_main_loop_is()))
{
+// TIZEN_ONLY(20150810): Add multi thread error message
+ ERR("You are calling %s from outside of the main loop threads. Program cannot run nomally", __FUNCTION__);
+//
EINA_MAIN_LOOP_CHECK_RETURN;
}
eo_manual_free_set(obj, EINA_TRUE);
if (EINA_UNLIKELY(!eina_main_loop_is()))
{
+// TIZEN_ONLY(20150810): Add multi thread error message
+ ERR("You are calling %s from outside of the main loop threads. Program cannot run nomally", __FUNCTION__);
+//
EINA_MAIN_LOOP_CHECK_RETURN;
}
if (EINA_UNLIKELY(!eina_main_loop_is()))
{
+// TIZEN_ONLY(20150810): Add multi thread error message
+ ERR("You are calling %s from outside of the main loop threads. Program cannot run nomally", __FUNCTION__);
+//
EINA_MAIN_LOOP_CHECK_RETURN_VAL(EINA_FALSE);
}