SpinLockArray
authorPhilip Pronin <philipp@fb.com>
Sun, 23 Sep 2012 20:12:28 +0000 (13:12 -0700)
committerJordan DeLong <jdelong@fb.com>
Fri, 12 Oct 2012 04:33:38 +0000 (21:33 -0700)
commit992f3b81dbab4521c50630c461b21e11f7ae29a5
treebd32e2fdfe76c3c3c6f672fa63a54a1865f0b26d
parent43bdc5d7d0bee944c1f437f3e159f32d4c57f3cd
SpinLockArray

Summary:
Array of spinlocks where each one is padded to prevent false
sharing.

Useful for shard-based locking implementations in environments where
contention is unlikely.

Test Plan: ran tests in 'common'

Reviewed By: soren@fb.com

FB internal diff: D582149
folly/SmallLocks.h