From: Alex Rousskov Date: Thu, 15 Sep 2011 17:35:22 +0000 (-0600) Subject: Expose the underlying integer type to AtomicWord users. X-Git-Tag: take08~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fec8b43d493724f085500aec0736e1d9b5f6bfa9;p=thirdparty%2Fsquid.git Expose the underlying integer type to AtomicWord users. --- diff --git a/src/ipc/AtomicWord.h b/src/ipc/AtomicWord.h index 04f42fffb8..0ebed1e73a 100644 --- a/src/ipc/AtomicWord.h +++ b/src/ipc/AtomicWord.h @@ -9,10 +9,12 @@ #if HAVE_ATOMIC_OPS /// Supplies atomic operations for an integral Value in memory shared by kids. /// Used to implement non-blocking shared locks, queues, tables, and pools. -template +template class AtomicWordT { public: + typedef ValueType Value; + AtomicWordT() {} // leave value unchanged AtomicWordT(Value aValue): value(aValue) {} // XXX: unsafe