Windows: Throwing Exceptions from Fibers in D2.059: Access Violation

Sean Kelly sean at invisibleduck.org
Fri Apr 20 11:09:33 PDT 2012


On Apr 20, 2012, at 10:59 AM, Andrew Lauritzen wrote:

> On Friday, 20 April 2012 at 17:49:52 UTC, Sean Kelly wrote:
>> There wouldn't me much of a performance hit, mostly an additional allocation and a bitcopy when creating a Fiber.  It's more that making this work on platforms with built-in TLS could be quite tricky.
> Note that this would somewhat sabotage their usefulness as coroutines, depending on how it was implemented. That's not to say the idea isn't good (but I'd frame it more like "tasks"; see Thread Building Blocks or similar), but fibers/coroutines as they stand now are useful so I'd hate to see that capability lost.

Ah, coroutines would actually want to share TLS with the executing thread?  That's good to know.


More information about the Digitalmars-d mailing list