aboutsummaryrefslogtreecommitdiff
path: root/src/allocators.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-05-04 16:10:09 +0200
committerPieter Wuille <sipa@ulyssis.org>2013-05-30 05:20:23 +0200
commit896185d7ed3fa23415424c608f0897d6139640f4 (patch)
tree818fdef522d74587e8b85d2f60e3682b47a18b73 /src/allocators.h
parentdfa23b94c24aae6466152fccbe896ba5dc0e97b4 (diff)
downloadbitcoin-896185d7ed3fa23415424c608f0897d6139640f4.tar.xz
Make signature cache store CPubKeys
Diffstat (limited to 'src/allocators.h')
-rw-r--r--src/allocators.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/allocators.h b/src/allocators.h
index b4490ce277..85af8fe376 100644
--- a/src/allocators.h
+++ b/src/allocators.h
@@ -176,6 +176,10 @@ private:
{}
};
+//
+// Functions for directly locking/unlocking memory objects.
+// Intended for non-dynamically allocated structures.
+//
template<typename T> void LockObject(const T &t) {
LockedPageManager::instance.LockRange((void*)(&t), sizeof(T));
}