diff options
author | mitya <mitya@yandex-team.ru> | 2022-02-10 16:51:43 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:51:43 +0300 |
commit | b23c761d35d9e2398117c1c8a02629a593b65370 (patch) | |
tree | ab7fbbf3253d4c0e2793218f09378908beb025fb /util/system | |
parent | 143708582af622873f254206609b70df73a651e2 (diff) | |
download | ydb-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.cpp | 4 | ||||
-rw-r--r-- | util/system/mlock.h | 4 |
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. */ |