12345678910111213141516171819202122module juptune.event.fiber;
struct FiberAllocatorConfig
{
/++ FUNCTIONS ++/
///
FiberAllocatorConfig shouldZeroOutBlocksOnFree(bool flag);
///
FiberAllocatorConfig withBlockStackSize(ulong bytes);
///
FiberAllocatorConfig withBlocksPerWall(ulong count);
/++ VARIABLES ++/
/// The minimum amount of bytes to allocate for each blocks' stack.
ulong blockStackSize;
/// How many blocks to allocate at one time, per wall.
ulong blocksPerWall;
/// Whether to zero-out the stack memory of a block during deallocation
bool zeroBlocksOnFree;
}
Configuration for a FiberAllocator.
| Name | Description |
|---|---|
| shouldZeroOutBlocksOnFree | |
| withBlockStackSize | |
| withBlocksPerWall |
| Name | Description |
|---|---|
| blockStackSize |
The minimum amount of bytes to allocate for each blocks' stack. |
| blocksPerWall |
How many blocks to allocate at one time, per wall. |
| zeroBlocksOnFree |
Whether to zero-out the stack memory of a block during deallocation |