[#LockedPool-2constructor-07] = xref:LockedPool.adoc[LockedPool]::LockedPool :relfileprefix: ../ :mrdocs: Create a new LockedPool. This takes ownership of the MemoryPageLocker, you can only instantiate this with LockedPool(std::move(...)). == Synopsis Declared in `<support/lockedpool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit LockedPool( std::unique_ptr<LockedPageAllocator> allocator, xref:LockedPool/LockingFailed_Callback.adoc[LockingFailed_Callback] lf_cb_in = nullptr); ---- == Description The second argument is an optional callback when locking a newly allocated arena failed. If this callback is provided and returns false, the allocation fails (hard fail), if it returns true the allocation proceeds, but it could warn. == Parameters [cols="1,4"] |=== | Name| Description | *allocator* | The page allocator whose ownership the pool takes. | *lf_cb_in* | Optional callback invoked when locking a new arena fails. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#