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
commit9a3354258cc740927a49f403277c5ada11712452 (patch)
tree94baa3bb560391500e8d815fd8bf482b8dc1db4c /util/system/mlock.h
parentefc65bacee6120d0454d2fa4e003ebd4f3e0e5ff (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 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 f021c0fe670..e401f27e4c9 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();