Does anyone know if xcache functions are atomic?

I am wondering which xcache functions are atomic. I know that xcache_inc() and xcache_dec() are atomic. I do not know if the atoms are xcache_get() and xcache_unset() .

+4
source share
1 answer

The function list says that XCache supports "atom get / set / inc / dec".

So get is atomic, whatever that means. (This probably just means that get never returns an intermediate value that more or less matches the set atom.)

Also, since set is atomic, I see no reason why unset will not be atomic either.

0
source

All Articles