summaryrefslogtreecommitdiffstats
path: root/util/system/mlock.h
diff options
context:
space:
mode:
authoralivshits <[email protected]>2022-02-10 16:51:43 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:51:43 +0300
commit653584b2d0be2bfbfad05b1d4c0cea95696eade9 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/system/mlock.h
parent9a3354258cc740927a49f403277c5ada11712452 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/mlock.h')
-rw-r--r--util/system/mlock.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/util/system/mlock.h b/util/system/mlock.h
index e401f27e4c9..f021c0fe670 100644
--- a/util/system/mlock.h
+++ b/util/system/mlock.h
@@ -1,18 +1,18 @@
-#pragma once
-
-#include "defaults.h"
-
+#pragma once
+
+#include "defaults.h"
+
#include <util/generic/flags.h>
-//on some systems (not win, freebd, linux, but darwin (Mac OS X)
-//multiple mlock calls on the same address range
-//require the corresponding number of munlock calls to actually unlock the pages
-
-//on some systems you must have privilege and resource limit
-
+//on some systems (not win, freebd, linux, but darwin (Mac OS X)
+//multiple mlock calls on the same address range
+//require the corresponding number of munlock calls to actually unlock the pages
+
+//on some systems you must have privilege and resource limit
+
void LockMemory(const void* addr, size_t len);
void UnlockMemory(const void* addr, size_t len);
-
+
enum ELockAllMemoryFlag {
/** Lock all pages which are currently mapped into the address space of the process. */
LockCurrentMemory = 1,
@@ -40,4 +40,4 @@ void LockAllMemory(ELockAllMemoryFlags flags);
*
* Does nothing on windows.
*/
-void UnlockAllMemory();
+void UnlockAllMemory();