Create a new LockedPool. This takes ownership of the MemoryPageLocker, you can only instantiate this with LockedPool(std::move(...)).
Declared in <support/lockedpool.h>
explicit
LockedPool(
std::unique_ptr<LockedPageAllocator> allocator,
LockingFailed_Callback lf_cb_in = nullptr);
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.
| Name | Description |
|---|---|
| allocator | The page allocator whose ownership the pool takes. |
| lf_cb_in | Optional callback invoked when locking a new arena fails. |