aboutsummaryrefslogtreecommitdiff
path: root/src/allocators.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-10-20 16:14:26 -0700
committerGavin Andresen <gavinandresen@gmail.com>2013-10-20 16:14:26 -0700
commit34f72ad6efb53b9da44576fcdbf8ce4ffdd7fcb8 (patch)
treecc5cf0e12517a760f7de179ab91ac00c2874e9a4 /src/allocators.cpp
parentdc03c2d584bfb7ec01b2d00773f760128e7ed434 (diff)
parent0b8f47dc531d3cbaf172a5e17f27524a40833dba (diff)
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 b239b623d8..15f34aa2c8 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()
{