Fiber and Thread Communication

Dicebot via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 8 06:15:07 PDT 2016


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.


More information about the Digitalmars-d-learn mailing list