On 2010-09-11 18:14:25 -0400, dsimcha <[email protected]> said:

Interesting. Now that I've given it more thought, though, using this is probably
a bad idea for lightweight task-based concurrency because resetting TLS at all
properly would require re-running thread-local module c'tors (arbitrarily
expensive), not just blitting a few things (cheap). I guess I'll have to resort
to disallowing arbitrary indirection in return types in any safe subset of
std.parallelism.

You could still allow it for pure functions.

--
Michel Fortin
[email protected]
http://michelf.com/

Reply via email to