Ipc::Mem::PagePool::PagePool(const char *const id):
pageIndex(shm_old(PageStack)(id)),
- theLevels(reinterpret_cast<Atomic::Word *>(
+ theLevels(reinterpret_cast<Levels_t *>(
reinterpret_cast<char *>(pageIndex.getRaw()) +
pageIndex->stackSize())),
theBuf(reinterpret_cast<char *>(theLevels + PageId::maxPurpose))
#ifndef SQUID_IPC_MEM_PAGE_POOL_H
#define SQUID_IPC_MEM_PAGE_POOL_H
-#include "ipc/AtomicWord.h"
#include "ipc/mem/Page.h"
#include "ipc/mem/PageStack.h"
#include "ipc/mem/Pointer.h"
private:
Ipc::Mem::Pointer<PageStack> pageIndex; ///< free pages index
+ typedef std::atomic<size_t> Levels_t;
/// number of shared memory pages used now for each purpose
- Atomic::Word *const theLevels;
+ Levels_t * const theLevels;
char *const theBuf; ///< pages storage
};