RCU-safe reference counting
Posted Jul 15, 2004 22:24 UTC (Thu) by
sjmadsen (guest, #4035)
Parent article:
RCU-safe reference counting
Never mind that cmpxchg() is a spinlock in different clothes. It is ever so slightly more efficient
because taking the lock and the operation protected by the lock are one and the same, and you
don't have to free the lock afterwards.
Seems like the "rather more elaborate and unsightly scheme involving a hashed array of
spinlocks" could have been a single spinlock.
(
Log in to post comments)