Registering-unregistering threads

Guillaume Piolat first.last at gmail.com
Mon Aug 2 11:53:34 UTC 2021


On Friday, 30 July 2021 at 23:48:41 UTC, solidstate1991 wrote:
> Info on it is quite scarce and a bit confusing. If I unregister 
> from the RT, will that mean it'll be GC independent, or will 
> have other consequences too?

The consequence is that the stack memory of that thread isn't 
traced, so things that are only "owned" pointed to transitively 
by pointers on the thread stack might get collected under your 
feet.

Your thread should use things that outlive its existence.



More information about the Digitalmars-d-learn mailing list