std.container.BinaryHeap + refCounted = WTF???
dsimcha
dsimcha at yahoo.com
Mon Nov 29 11:25:37 PST 2010
== Quote from Steven Schveighoffer (schveiguy at yahoo.com)'s article
> > 1. Due to obscure implementation details, it is **not** safe to append
> > to a
> > non-shared array even if you synchronize manually.
> I think you meant __gshared, not non-shared. It's perfectly safe to
> append to non-shared arrays.
> -Steve
No, I meant appending to non-shared arrays from multiple threads, i.e. __gshared
or passed by reference between threads.
More information about the Digitalmars-d
mailing list