New feature support in folly::AtomicHash*
authorMark Williams <mwilliams@fb.com>
Thu, 9 May 2013 18:41:55 +0000 (11:41 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 20 May 2013 18:01:27 +0000 (11:01 -0700)
commit7969353a581b2e0e8e708e97cb55acd2fa45da45
treef13046a2b22c5ad8eed2977bbf6981799d086f83
parentaa0a656977742d967cc743be6245f50669c08380
New feature support in folly::AtomicHash*

Summary:
AtomicHashMap/AtomicHashArray didn't support a custom equality
function, and didnt support pointer keys. We only ever do
compare-and-swap against the 3 "magic" keys, so as long as we're
careful we can continue to do that, while using the equality
function elsewhere.

Also add a user-configurable growth rate, independent of
maxLoadFactor.

Test Plan: automated tests

Reviewed By: delong.j@fb.com

FB internal diff: D806936
folly/AtomicHashArray-inl.h
folly/AtomicHashArray.h
folly/AtomicHashMap-inl.h
folly/AtomicHashMap.h