]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/ipc/mem/Pages.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / ipc / mem / Pages.h
index e447c51f20fca30c0cfa9a33ab400afc592cdb84..3ad47e4c2b53834f0d5a433c82e5655719ab8a96 100644 (file)
@@ -1,6 +1,9 @@
 /*
- * $Id$
+ * Copyright (C) 1996-2017 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
@@ -8,9 +11,11 @@
 
 #include "ipc/mem/Page.h"
 
-namespace Ipc {
+namespace Ipc
+{
 
-namespace Mem {
+namespace Mem
+{
 
 /* Single page manipulation */
 
@@ -23,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
@@ -49,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
+