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 | 143708582af622873f254206609b70df73a651e2 (patch) | |
tree | c16ef58e8e5bbdb3d5cdfea9d3aa9985fdead771 | |
parent | 653584b2d0be2bfbfad05b1d4c0cea95696eade9 (diff) | |
download | ydb-143708582af622873f254206609b70df73a651e2.tar.gz |
Restoring authorship annotation for <mitya@yandex-team.ru>. Commit 1 of 2.
-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 435338c98f..28a7e8ff27 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 f021c0fe67..7e8034d6b0 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. */ |