Skip to content

Commit 366bc8b

Browse files
committed
Get rid of LockObject and UnlockObject unused methods.
1 parent 121e5c0 commit 366bc8b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/allocators.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)