I’m wondering which xcache functions are atomic. I know that xcache_inc() and xcache_dec() are both atomic. I dont know if xcache_get() and xcache_unset() are atomic.
I’m wondering which xcache functions are atomic. I know that xcache_inc() and xcache_dec() are
Share
The Feature List says that XCache supports “atomic get/set/inc/dec”.
So
getis atomic, whatever that means. (It probably just means thatgetnever returns an in-between value, which is more or less the same thing as atomicset.)Also, since
setis atomic, I see no reason whyunsetwouldn’t be atomic, too.