Fiber and Thread Communication
Nordlöw via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Apr 8 07:08:39 PDT 2016
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?
More information about the Digitalmars-d-learn
mailing list