4

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.

Michael Berkowski
  • 267,341
  • 46
  • 444
  • 390
incognito2
  • 1,024
  • 3
  • 13
  • 20

1 Answers1

0

The Feature List says that XCache supports "atomic get/set/inc/dec".

So get is atomic, whatever that means. (It probably just means that get never returns an in-between value, which is more or less the same thing as atomic set.)

Also, since set is atomic, I see no reason why unset wouldn't be atomic, too.

kijin
  • 8,702
  • 2
  • 26
  • 32