add some missing methods to DeterministicAtomic
authorNathan Bronson <ngbronson@fb.com>
Mon, 2 Feb 2015 16:46:18 +0000 (08:46 -0800)
committerwoo <woo@fb.com>
Mon, 2 Feb 2015 21:15:01 +0000 (13:15 -0800)
commitb446406a8ccf21b640d1359aee0e9f285a87245c
tree1371de9cd7d0f22ba22c587bad7e0ea41322a421
parentba7fdc792ce8168962af15ba20a1eef00c1ea7ce
add some missing methods to DeterministicAtomic

Summary:
fetch_and and fetch_or are actually required in some instances,
since the operation they perform isn't reversible.  This also adds some
other missing functions, ^= and fetch_{add,sub,xor}.

Test Plan: use from other code's unit tests

Reviewed By: mssarang@fb.com

Subscribers: yfeldblum, folly-diffs@

FB internal diff: D1798924

Signature: t1:1798924:1422892374:a9859039075ddcac54f75259b9bc6a29bb963a09
folly/test/DeterministicSchedule.h