Is there a thread safe single linked list?

Sean Kelly sean at invisibleduck.org
Fri Oct 12 16:30:34 PDT 2012


On Oct 12, 2012, at 10:18 AM, denizzzka <4denizzz at gmail.com> wrote:

> Thanks for answer!
> 
> After investigation came to the conclusion that here is needed not synchronized-based solution. I am need compare-and-swap single linked list because it will be used in callback proc from C, and it cannot be throwable, but synchronized contains throwable _d_monitorenter and_d_monitorexit.
> 
> I would be grateful if someone share singly linked list based on cas()

There's a sample Stack and SList implementation in the concurrency chapter:

http://www.informit.com/articles/printerfriendly.aspx?p=1609144



More information about the Digitalmars-d-learn mailing list