aboutsummaryrefslogtreecommitdiff
path: root/src/allocators.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-10-20 16:14:26 -0700
committerGavin Andresen <[email protected]>2013-10-20 16:14:26 -0700
commit34f72ad6efb53b9da44576fcdbf8ce4ffdd7fcb8 (patch)
treecc5cf0e12517a760f7de179ab91ac00c2874e9a4 /src/allocators.cpp
parentMerge pull request #3117 from gavinandresen/debuglockprint (diff)
parentChanging LockedPageManager to use a managed instance (diff)
downloaddiscoin-34f72ad6efb53b9da44576fcdbf8ce4ffdd7fcb8.tar.xz
discoin-34f72ad6efb53b9da44576fcdbf8ce4ffdd7fcb8.zip
Merge pull request #3046 from sarchar/lockedpage-change
Changing LockedPageManager to use a managed instance
Diffstat (limited to 'src/allocators.cpp')
-rw-r--r--src/allocators.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/allocators.cpp b/src/allocators.cpp
index b239b623d..15f34aa2c 100644
--- a/src/allocators.cpp
+++ b/src/allocators.cpp
@@ -24,6 +24,9 @@
#include <unistd.h> // for sysconf
#endif
+LockedPageManager* LockedPageManager::_instance = NULL;
+boost::once_flag LockedPageManager::init_flag = BOOST_ONCE_INIT;
+
/** Determine system page size in bytes */
static inline size_t GetSystemPageSize()
{