diff options
author | alivshits <[email protected]> | 2022-02-10 16:51:43 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:51:43 +0300 |
commit | 9a3354258cc740927a49f403277c5ada11712452 (patch) | |
tree | 94baa3bb560391500e8d815fd8bf482b8dc1db4c /util/system/mlock.h | |
parent | efc65bacee6120d0454d2fa4e003ebd4f3e0e5ff (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/mlock.h')
-rw-r--r-- | util/system/mlock.h | 24 |
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(); |