aboutsummaryrefslogtreecommitdiff
path: root/src/allocators.h
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2013-05-04 16:10:09 +0200
committerPieter Wuille <[email protected]>2013-05-30 05:20:23 +0200
commit896185d7ed3fa23415424c608f0897d6139640f4 (patch)
tree818fdef522d74587e8b85d2f60e3682b47a18b73 /src/allocators.h
parentCSecret/CKey -> CKey/CPubKey split/refactor (diff)
downloaddiscoin-896185d7ed3fa23415424c608f0897d6139640f4.tar.xz
discoin-896185d7ed3fa23415424c608f0897d6139640f4.zip
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 b4490ce27..85af8fe37 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));
}