Is it safe to reset HOLD fiber?

Martin Nowak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 3 07:32:03 PDT 2015


On Sunday, 3 May 2015 at 12:42:23 UTC, Dzugaru wrote:
> Just did another test and it seems its not safe at all. Reusing 
> the fibers with reset without properly exiting the function 
> leads to eventual stack overflow.

It won't cleanup the old stack, so it may leak resources. It will 
properly reset the stack though, so the fiber should behave like 
a new one.


More information about the Digitalmars-d-learn mailing list