common: add a class to safely wrap mlock/munlock

This class will allow mlocking small objects, of which there
may be several per page. It adds refcounting so pages are only
munlocked when the last object on that page munlocks.
This commit is contained in:
moneromooo-monero 2018-08-02 11:44:31 +00:00
parent e9ffa91257
commit 70271fa788
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
6 changed files with 464 additions and 1 deletions

View file

@ -53,6 +53,7 @@ set(unit_tests_sources
http.cpp
main.cpp
memwipe.cpp
mlocker.cpp
mnemonics.cpp
mul_div.cpp
multisig.cpp