25 Oct
2013
25 Oct
'13
1:15 p.m.
On Friday 25 October 2013 15:10:24 Oliver Kowalke wrote:
2013/10/25 Andrey Semashev
Actually, it can be much simpler:
T* p = a[index].exchange(NULL); if (expected)
// The expected value was removed from the array
else
// The array element was removed by some other thread
you mean 'if ( p)' ;^)
Yes, of course. :)