]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/ipc/ReadWriteLock.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / ipc / ReadWriteLock.h
index 91507dee46fd20aa5e2b04a471d9f0d0c5c9b11c..925e02ca0df6eca8f089aa48afbfa75b99f20b77 100644 (file)
@@ -5,12 +5,14 @@
 
 class StoreEntry;
 
-namespace Ipc {
+namespace Ipc
+{
 
 class ReadWriteLockStats;
 
 /// an atomic readers-writer or shared-exclusive lock suitable for maps/tables
-class ReadWriteLock {
+class ReadWriteLock
+{
 public:
     // default constructor is OK because of shared memory zero-initialization
 
@@ -24,13 +26,13 @@ public:
     void updateStats(ReadWriteLockStats &stats) const;
 
 public:
-    mutable AtomicWord readers; ///< number of users trying to read
-    AtomicWord writers; ///< number of writers trying to modify protected data
+    mutable Atomic::Word readers; ///< number of users trying to read
+    Atomic::Word writers; ///< number of writers trying to modify protected data
 };
 
-
 /// approximate stats of a set of ReadWriteLocks
-class ReadWriteLockStats {
+class ReadWriteLockStats
+{
 public:
     ReadWriteLockStats();