struct SpawnConfig [src]
Configuration options for hints on how to spawn threads.
Fields
stack_size: usize = default_stack_sizeSize in bytes of the Thread's stack
allocator: ?std.mem.Allocator = nullThe allocator to be used to allocate memory for the to-be-spawned thread
Members
- default_stack_size (Constant)
Source
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;
}