diff -r 563aea5eba06 -r 9b30f80f6e49 include/am-refcounting-threadsafe.h --- a/include/am-refcounting-threadsafe.h Sat Aug 31 19:52:41 2013 -0700 +++ b/include/am-refcounting-threadsafe.h Fri Sep 06 13:54:31 2013 -0700 @@ -35,12 +35,15 @@ namespace ke { +// See the comment above Refcounted for more information. This class is +// identical, except changing the reference count is guaranteed to be atomic +// with respect to other threads changing the reference count. template class RefcountedThreadsafe { public: RefcountedThreadsafe() - : refcount_(1) + : refcount_(0) { }