]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/ipc/mem/Pages.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / ipc / mem / Pages.h
index aeea1890e15b6a664ec2e9fe3d9d9a621d53899f..ec74c4f69e3c48349aa7c9876a1c1d9c903cfd3a 100644 (file)
@@ -1,6 +1,9 @@
 /*
- * $Id$
+ * 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.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
 #ifndef SQUID_IPC_MEM_PAGES_H
@@ -25,7 +28,6 @@ void PutPage(PageId &page);
 /// converts page handler into a temporary writeable shared memory pointer
 char *PagePointer(const PageId &page);
 
-
 /* Limits and statistics */
 
 /// the total number of shared memory pages that can be in use at any time
@@ -51,8 +53,12 @@ inline size_t PagesAvailable(const int purpose) { return PageLimit(purpose) - Pa
 /// returns page size in bytes; all pages are assumed to be the same size
 size_t PageSize();
 
+/// claim the need for a number of pages for a given purpose
+void NotePageNeed(const int purpose, const int count);
+
 } // namespace Mem
 
 } // namespace Ipc
 
 #endif // SQUID_IPC_MEM_PAGES_H
+