Pool module

reset

procedure · 1 overloadSource

Gives all memory back to the pool: oversized blocks are freed, ordinary blocks are kept for reuse (or freed too, with free_memblocks_on_reset).

Every pointer from get is invalid afterwards. With overwrite_memory the reused blocks are filled with 0xcc first. Safe to call on an empty pool.

reset :: (pool: *Pool)

Gives all memory back to the pool: oversized blocks are freed, ordinary blocks are kept for reuse (or freed too, with free_memblocks_on_reset).

Every pointer from get is invalid afterwards. With overwrite_memory the reused blocks are filled with 0xcc first. Safe to call on an empty pool.

Parameters

pool: *Pool

See also