fix ecore-glib reentrance
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 22 Feb 2010 20:09:03 +0000 (20:09 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 22 Feb 2010 20:09:03 +0000 (20:09 +0000)
commit8796d3d59aedaf6cf5c36c3c40f3234108b12a6e
tree100e3e496c1a9cdbfb987ad05c36f09afab0aa7e
parentcaaf038771a7d41b7440e1d8b952ddaeb40a9a36
fix ecore-glib reentrance

if using ecore_main_loop_begin() multiple times (reentrant/recursive)
with glib doing threads, then it would deadlock since the same thread
would get the lock it already have.

multiple ecore_main_loop_begin() is required to implement WebKit's
alert/confirm/prompt dialogs since there is no async reply with
callbacks, rather one must return the value.

By: Lucas de Marchi

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@46361 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/ecore/ecore_glib.c