Re: Quitting a child thread's GMainLoop
- From: Tony Cebzanov <tonycpsu gmail com>
- To: Chris Vine <chris cvine freeserve co uk>
- Cc: gtk-list gnome org
- Subject: Re: Quitting a child thread's GMainLoop
- Date: Wed, 04 Aug 2010 21:06:46 -0400
On 8/4/10 6:44 PM, Chris Vine wrote:
> Our posts have crossed but you wouldn't use a quit flag at all. If
> the main thread calls g_main_loop_quit() on a worker thread's main
> loop, whether via an idle handler (my first suggestion) or directly
> (my second), the main loop will come to an end and the thread will
> run to its return point and terminate.
Thanks -- that's exactly what I was looking for. It seems to work, and
is a lot more straightforward than I thought it'd be. I guess I should
have tried the simplest thing first. :)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]