Flat_Pool module

init

procedure · 1 overloadSource

Reserves reserve bytes of address space for the pool, rounded up to a whole number of pages, and starts it empty.

The pool must not be initialized already (fini it first). An unusable reservation, a size of zero or less, or a failed OS call fails an assert.

init :: (pool: *Flat_Pool, reserve := DEFAULT_VIRTUAL_MEMORY_RESERVE)

Reserves reserve bytes of address space for the pool, rounded up to a whole number of pages, and starts it empty.

The pool must not be initialized already (fini it first). An unusable reservation, a size of zero or less, or a failed OS call fails an assert.

Parameters

pool: *Flat_Pool
reserve := DEFAULT_VIRTUAL_MEMORY_RESERVE

See also