problems when using g_main_loop_quit from different thread
- From: Armin Bauer <armin bauer desscon com>
- To: gtk-app-devel-list gnome org
- Subject: problems when using g_main_loop_quit from different thread
- Date: Thu, 09 Mar 2006 15:29:04 +0100
Hi everyone,
i am experiencing random problems here if i use g_main_loop_quit from a
different thread than where the GMainLoop runs.
my program looks like this:
1. in main: create a new context and a new loop
2. spawn a thread
3. call g_main_loop_run in the thread on the previously created loop
4. some time later: call g_main_loop_quit from main
whats supposed to happen (i guess) is that the main loop quits. But
sometimes the call to loop_quit just has not effect, so the main loop
continues to run.
Is this a known problem or am i doing something wrong?
Best Regards,
Armin Bauer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]