
18 Jan
2008
18 Jan
'08
8 p.m.
Gennadiy Rozental:
Peter Dimov <pdimov <at> pdimov.com> writes:
X* X::instance() { static X* s_px = 0;
if( X* px = atomic_load_relaxed( &s_px ) )
&s_px doesn't look right here.
I'm using a C-style atomic interface for illustration purposes: T atomic_load_relaxed( T * pt ); // returns *pt, but atomically