/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
public:
typedef Ipc::Mem::Owner<PageStack> Owner;
- static Owner *Init(const char *const id, const unsigned int capacity, const size_t pageSize);
+ static Owner *Init(const char *const shmId, const Ipc::Mem::PoolId stackId, const unsigned int capacity, const size_t pageSize);
PagePool(const char *const id);
private:
Ipc::Mem::Pointer<PageStack> pageIndex; ///< free pages index
+ using Levels_t = PageStack::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
};