Add LoggedAtomic<> debug class 44/67944/6
authorDave Rigby <daver@couchbase.com>
Fri, 23 Sep 2016 10:29:54 +0000 (11:29 +0100)
committerDave Rigby <daver@couchbase.com>
Fri, 30 Sep 2016 09:06:14 +0000 (09:06 +0000)
commitdd3e745f96096cf95eef3073f17ca6fca505eaa2
treed0704aa27869647ed2dde27262d058886a8f31fd
parent4eae12aa7d372d02e14c81c5eb733e5912f81f69
Add LoggedAtomic<> debug class

A Debugging wrapper around std::atomic which print all accesses to the
atomic value to stderr.

Drop-in compatible with AtomicValue for simple use-cases - currently
only implements load() / store().

Change-Id: I78cec4d8bad55588900573f201d81a38f16f97ee
Reviewed-on: http://review.couchbase.org/67944
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>
src/atomic.h