ecore - detect nested ecore_main_loop_begins from silly code

@feature
This commit is contained in:
Carsten Haitzler 2015-10-05 16:00:47 +09:00
parent f169d7ed27
commit 5a8632ab36
1 changed files with 5 additions and 0 deletions

View File

@ -972,6 +972,11 @@ EAPI void
ecore_main_loop_begin(void)
{
EINA_MAIN_LOOP_CHECK_RETURN;
if (in_main_loop > 0)
{
ERR("Running ecore_main_loop_begin() inside an existing main loop");
return;
}
eina_evlog("+mainloop", NULL, 0.0, NULL);
#ifdef HAVE_SYSTEMD
sd_notify(0, "READY=1");