]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Expose the underlying integer type to AtomicWord users.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 15 Sep 2011 17:35:22 +0000 (11:35 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 15 Sep 2011 17:35:22 +0000 (11:35 -0600)
src/ipc/AtomicWord.h

index 04f42fffb8a6523b202efc0c53dcb86be54cd388..0ebed1e73a2b76ed1b47bc7aa29c41ad170441a8 100644 (file)
@@ -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 <class Value>
+template <class ValueType>
 class AtomicWordT
 {
 public:
+    typedef ValueType Value;
+
     AtomicWordT() {} // leave value unchanged
     AtomicWordT(Value aValue): value(aValue) {} // XXX: unsafe