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>
explicit
LockedPool(
std::unique_ptr<LockedPageAllocator> allocator,
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
Name |
Description |
allocator |
The page allocator whose ownership the pool takes. |
lf_cb_in |
Optional callback invoked when locking a new arena fails. |
Created with MrDocs