Fiber.yield with call scope guard
ChangLong
changlon at gmail.com
Sat Dec 30 06:52:25 UTC 2017
I am look a method like Fiber.yieldAndThrow, but also call all
scopeguard.
I am hack Fiber into struct with no throw, try to use it on
network project with high performance.
I use scopeguard to auto release memory or resource, but when I
call Fiber .yieldAndThrow the scopeguard chain will not be call.
If there a is some Asm code to jump call scopeguard will solve
the problem.
the other solution will be try catch use with exception, and the
code will not be able to work under BetterC.
More information about the Digitalmars-d-learn
mailing list