aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authormitya <mitya@yandex-team.ru>2022-02-10 16:51:43 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:43 +0300
commitb23c761d35d9e2398117c1c8a02629a593b65370 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/system
parent143708582af622873f254206609b70df73a651e2 (diff)
downloadydb-b23c761d35d9e2398117c1c8a02629a593b65370.tar.gz
Restoring authorship annotation for <mitya@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/mlock.cpp4
-rw-r--r--util/system/mlock.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/util/system/mlock.cpp b/util/system/mlock.cpp
index 28a7e8ff27..435338c98f 100644
--- a/util/system/mlock.cpp
+++ b/util/system/mlock.cpp
@@ -30,7 +30,7 @@ void LockMemory(const void* addr, size_t len) {
ythrow yexception() << LastSystemErrorText();
if (!SetProcessWorkingSetSize(hndl, min + len, max + len))
ythrow yexception() << LastSystemErrorText();
- if (!VirtualLock((LPVOID)addr, len))
+ if (!VirtualLock((LPVOID)addr, len))
ythrow yexception() << LastSystemErrorText();
#endif
}
@@ -47,7 +47,7 @@ void UnlockMemory(const void* addr, size_t len) {
ythrow yexception() << LastSystemErrorText();
if (!SetProcessWorkingSetSize(hndl, min - len, max - len))
ythrow yexception() << LastSystemErrorText();
- if (!VirtualUnlock((LPVOID)addr, len))
+ if (!VirtualUnlock((LPVOID)addr, len))
ythrow yexception() << LastSystemErrorText();
#endif
}
diff --git a/util/system/mlock.h b/util/system/mlock.h
index 7e8034d6b0..f021c0fe67 100644
--- a/util/system/mlock.h
+++ b/util/system/mlock.h
@@ -10,8 +10,8 @@
//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);
+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. */