LoggedAtomic: Expand set of operations supported, serialize logging 09/69009/4
authorDave Rigby <daver@couchbase.com>
Wed, 19 Oct 2016 10:20:40 +0000 (11:20 +0100)
committerDave Rigby <daver@couchbase.com>
Fri, 21 Oct 2016 10:46:45 +0000 (10:46 +0000)
commit2252bb7af961c3ec240adc222a8af462522acf4d
tree1680d16cadc2251b07b9e2eeb7a2e0b91c8be7b3
parent059e4bc4989bfb8d6e097eb4a1162d644338e5a9
LoggedAtomic: Expand set of operations supported, serialize logging

Add support for increment & decrement (fetch_{add,sub}), assignment
and conversion to T.

Also add a mutex to serialize access to stderr, to prevent corruption
in log messages.

Change-Id: I0a617f702a22d287fb87bd1001ee0300b6551b9e
Reviewed-on: http://review.couchbase.org/69009
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
Reviewed-by: Will Gardner <willg@rdner.io>
src/atomic.h