Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kPoolAlloc_EnableBlockReuse | ( | kPoolAlloc | object,
|  | kBool | enabled
| ) |  |

Determines whether blocks can be reused between ranks.

When a memory request qualifies for block-based allocation, and no free buffers are available at the required rank, a new block must be provided. If block reuse is enabled, then free blocks from other ranks can be reassigned as needed. If block reuse is disabled, then blocks remain at the rank to which they are first assigned.

Block reuse can increase allocation time slightly, due to the need to search through all ranks for a free block. Reuse is enabled by default.

Parameters

  object | kPoolAlloc object.
  enabled | kTRUE to enable reuse; kFALSE otherwise.

Returns
  Operation status.