Is there a thread safe single linked list?

Jonathan M Davis jmdavisProg at gmx.com
Fri Oct 12 10:05:12 PDT 2012


On Friday, October 12, 2012 14:59:56 denizzzka wrote:
> Hi!
> 
> Specifically, pushBack(x) and moveFront() operations should be a
> thread safe.

Not in Phobos. No containers in Phobos contain any kind of synchronization. 
The same goes for the built-in array types. If any of them are shared, you'll 
need to protect them appropriately.

If any kind of thread-safe container exists, it's in a third party library 
somewhere.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list