[Omp] atomic directive semantics
Richard Henderson
rth at twiddle.net
Fri Sep 23 01:03:00 PDT 2005
On Fri, Sep 23, 2005 at 09:56:45AM +0200, Dieter an Mey wrote:
> Why can't we just go abandon atomic and let the compiler try to optimize
> the critical region?
Because it implies different semantics on the reader side.
Lock-less data structures are very nice to program with. It normally
requires a compare-and-swap operation to be useful though; something
not provided by the omp atomic.
r~
More information about the Omp
mailing list