Where can i find examples of multi-threaded fibers?
Gary Willoughby via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 27 11:30:05 PDT 2015
On Monday, 27 July 2015 at 08:00:10 UTC, Marc Schütz wrote:
> On Sunday, 26 July 2015 at 18:07:51 UTC, Gary Willoughby wrote:
>> In the description for Fiber in std.thread is the following[1]:
>>
>> "Please note that there is no requirement that a fiber be
>> bound to one specific thread. Rather, fibers may be freely
>> passed between threads so long as they are not currently
>> executing."
>>
>> How would this be accomplished and are there any code examples
>> available to learn from? I'm assuming this would require a
>> custom scheduler similar to the one in std.concurrency?[2]
>>
>> [1]: http://dlang.org/phobos/core_thread.html#.Fiber
>> [2]:
>> http://dlang.org/phobos/std_concurrency.html#.FiberScheduler
>
> There was a long discussion about this a few weeks ago, and
> IIRC the outcome was that we shouldn't allow it, because it
> breaks the type system.
Where is the discussion?
More information about the Digitalmars-d-learn
mailing list