[#LockedPageAllocator]
= LockedPageAllocator
:mrdocs:

OS&hyphen;dependent allocation and deallocation of locked&sol;pinned memory pages&period; Abstract base class&period;

== Synopsis

Declared in `&lt;support&sol;lockedpool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class LockedPageAllocator;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:LockedPageAllocator/2destructor.adoc[`&#126;LockedPageAllocator`] [.small]#[destructor]# [.small]#[virtual]#
| Destroys the allocator&period;
| xref:LockedPageAllocator/AllocateLocked.adoc[`AllocateLocked`]  [.small]#[virtual]#
| Allocate and lock memory pages&period; If len is not a multiple of the system page size, it is rounded up&period; Returns nullptr in case of allocation failure&period;
| xref:LockedPageAllocator/FreeLocked.adoc[`FreeLocked`]  [.small]#[virtual]#
| Unlock and free memory pages&period; Clear the memory before unlocking&period;
| xref:LockedPageAllocator/GetLimit.adoc[`GetLimit`]  [.small]#[virtual]#
| Get the total limit on the amount of memory that may be locked by this process, in bytes&period; Return size&lowbar;t max if there is no limit or the limit is unknown&period; Return 0 if no memory can be locked at all&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
