Concurrent Thread Safe List?
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Feb 4 14:14:31 PST 2015
On 02/04/2015 12:10 PM, Gan wrote:
> I'm looking for a non-blocking way of a thread pushing objects into a
> list and another thread able to pull objects from the same list. Thread
> 1 pushes objects onto the list, Thread 2 pulls the oldest objects off
> the list.
>
> Does D language have something like that?
The std.concurrency module does exactly that:
http://dlang.org/phobos/std_concurrency.html
And something I wrote:
http://ddili.org/ders/d.en/concurrency.html
Ali
More information about the Digitalmars-d-learn
mailing list