Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

SpawnConfig

Public Struct
std.Thread.SpawnConfig
pub const SpawnConfig = struct

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

File

Thread.zig:298
298
299
300
301
302
303
304
305
306
307
308
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;
}