Re: problems when using g_main_loop_quit from different thread
- From: Armin Bauer <armin bauer desscon com>
- To: Tristan Van Berkom <tristan van berkom gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: problems when using g_main_loop_quit from different thread
- Date: Thu, 09 Mar 2006 20:33:47 +0100
Tristan Van Berkom wrote:
Armin Bauer wrote:
Is this a known problem or am i doing something wrong?
Heh, I think I figured it out; I think that after calling
g_main_loop_quit();
if the thread is sleeping, you'll have to call g_main_context_wakeup() on
it for _run() to return; I wonder if that is a bug or should be
considered one
(i.e. should that be implicit ?).
as far as i can tell this seems to solve the problem (i havent been able
to trigger this bug reliably, so i just ran my unit until i was
confident enough).
Dont know if the wakeup should be implicit. it should at least be noted
in the docs.
Thanks for your help!
Best Regards,
Armin
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]