j
k
j a
j l
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
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)' ;^)
Back to the thread
Back to the list