On Friday, 8 April 2016 at 13:15:07 UTC, Dicebot wrote:
On Friday, 8 April 2016 at 11:18:11 UTC, Nordlöw wrote:
On Friday, 8 April 2016 at 11:01:21 UTC, Dicebot wrote:
Doesn't std.concurrency support both right now? I remember
seeing PR that adds message box support to fibers ages ago.
See https://issues.dlang.org/show_bug.cgi?id=12090 and
https://github.com/D-Programming-Language/phobos/pull/1910 for
relevant code (as you can see it was merged several releases
ago)
1. What functions provide message box communication?
The same ones as thread ones. API is completely transparent.
2. But Fibers cannot currently be moved between threads right?
Yes, and this is by design. It harms performance of concurrent
apps.
So a TId can represent either a thread or a fiber?