[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Hooking into garbage collection
- From: Sean Conner <sean@...>
- Date: Mon, 30 Dec 2013 21:03:42 -0500
It was thus said that the Great Rena once stated:
>
> It still seems like there's an issue though. If I let the child threads
> keep running after the main thread exits, they don't shut down correctly. I
> have extensive debug output logging what each thread is doing, and after
> the main thread's destructor fires, some child threads just stop abruptly
> (sometimes in the middle of writing a line). If I don't explicitly load my
> module in each child thread, then they'll even segfault. (Maybe trying to
> access some code in that module after it's been unloaded?) Is there
> something else I have to do to allow child threads to keep running after
> the main thread finishes?
Keep the main thread around until all the children finish.
The main thread *is* the process. When that is done, so is the process.
-spc
- References:
- Re: Hooking into garbage collection, Sean Conner
- Re: Hooking into garbage collection, Choonster TheMage
- Re: Hooking into garbage collection, Sean Conner
- Re: Hooking into garbage collection, Rena
- Re: Hooking into garbage collection, Philipp Janda
- Re: Hooking into garbage collection, Rena
- Re: Hooking into garbage collection, Philipp Janda
- Re: Hooking into garbage collection, Rena
- Re: Hooking into garbage collection, Finn Wilcox
- Re: Hooking into garbage collection, Rena