Wait-free thread communication
David Nadlinger via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jan 10 07:14:39 PST 2016
On Saturday, 9 January 2016 at 22:44:53 UTC, Ola Fosheim Grøstad
wrote:
> Yes. But my experience from writing custom multi-single queues
> is that it can end up harder than it looks to get it working
> and efficient. […] (Intuition is often wrong in this area...)
I wholeheartedly agree with that statement. However, if one
doesn't understand atomics well enough to correctly implement
even a simple single-single queue, I'm not sure whether one would
be able to correctly port an existing implementation either.
Then again, the primitives might be similar enough between C++11
and D so that a literal translation is possible without
understanding what is going on.
— David
More information about the Digitalmars-d
mailing list