Re: Quitting a child thread's GMainLoop



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]