/*
- * DEBUG: section 54 Interprocess Communication
+ * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
*
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
*/
+/* DEBUG: section 54 Interprocess Communication */
+
#include "squid.h"
#include "base/TextException.h"
#include "ipc/mem/Page.h"
}
Ipc::Mem::PagePool::PagePool(const char *const id):
- pageIndex(shm_old(PageStack)(id)),
- theLevels(reinterpret_cast<Atomic::Word *>(
- reinterpret_cast<char *>(pageIndex.getRaw()) +
- pageIndex->stackSize())),
- theBuf(reinterpret_cast<char *>(theLevels + PageId::maxPurpose))
+ pageIndex(shm_old(PageStack)(id)),
+ theLevels(reinterpret_cast<Levels_t *>(
+ reinterpret_cast<char *>(pageIndex.getRaw()) +
+ pageIndex->stackSize())),
+ theBuf(reinterpret_cast<char *>(theLevels + PageId::maxPurpose))
{
}
Must(pageIndex->pageIdIsValid(page));
return theBuf + pageSize() * (page.number - 1);
}
+