File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -160,23 +160,6 @@ class LockedPageManager : public LockedPageManagerBase<MemoryPageLocker>
160160 static boost::once_flag init_flag;
161161};
162162
163- //
164- // Functions for directly locking/unlocking memory objects.
165- // Intended for non-dynamically allocated structures.
166- //
167- template <typename T>
168- void LockObject (const T& t)
169- {
170- LockedPageManager::Instance ().LockRange ((void *)(&t), sizeof (T));
171- }
172-
173- template <typename T>
174- void UnlockObject (const T& t)
175- {
176- memory_cleanse ((void *)(&t), sizeof (T));
177- LockedPageManager::Instance ().UnlockRange ((void *)(&t), sizeof (T));
178- }
179-
180163//
181164// Allocator that locks its contents from being paged
182165// out of memory and clears its contents before deletion.
You can’t perform that action at this time.
0 commit comments