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
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();