structstd.Thread.SpawnConfig[src]

Configuration options for hints on how to spawn threads.

Fields

stack_size: usize = default_stack_size

Size in bytes of the Thread's stack

allocator: ?std.mem.Allocator = null

The allocator to be used to allocate memory for the to-be-spawned thread

Values

Constantdefault_stack_size[src]

Source Code

Source code
pub const default_stack_size = 16 * 1024 * 1024

Source Code

Source code
pub const SpawnConfig = struct {
    // TODO compile-time call graph analysis to determine stack upper bound
    // https://github.com/ziglang/zig/issues/157

    /// Size in bytes of the Thread's stack
    stack_size: usize = default_stack_size,
    /// The allocator to be used to allocate memory for the to-be-spawned thread
    allocator: ?std.mem.Allocator = null,

    pub const default_stack_size = 16 * 1024 * 1024;
}