[#LockedPool-2constructor-09]
= xref:LockedPool.adoc[LockedPool]::LockedPool
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Deleted copy constructor&semi; a LockedPool cannot be copied&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:LockedPool/2constructor-0b.adoc[LockedPool](xref:LockedPool.adoc[LockedPool] const& other) = delete;
----

[.small]#xref:LockedPool/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Create a new LockedPool&period; This takes ownership of the MemoryPageLocker, you can only instantiate this with LockedPool(std&colon;&colon;move(&period;&period;&period;))&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:LockedPool/2constructor-07.adoc[LockedPool](
    std::unique&lowbar;ptr&lt;LockedPageAllocator&gt; allocator,
    xref:LockedPool/LockingFailed_Callback.adoc[LockingFailed&lowbar;Callback] lf&lowbar;cb&lowbar;in = nullptr);
----

[.small]#xref:LockedPool/2constructor-07.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The pool that would have been copied&period;
| *allocator*
| The page allocator whose ownership the pool takes&period;
| *lf&lowbar;cb&lowbar;in*
| Optional callback invoked when locking a new arena fails&period;
|===


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