-
Notifications
You must be signed in to change notification settings - Fork 6
zigar.thread.WorkQueue(ns).Options
Chung Leong edited this page Oct 21, 2025
·
8 revisions
Struct containing options for WorkQueue.
Struct fields:
-
allocator:std.mem.Allocator
Allocator for obtaining memory used to store work items. -
n_jobs:usize
Number of worker threads. Defaults to1. -
stack_size:usize
Size of thread stack in bytes. Defaults to262144(256K) for WASM and std.Thread.SpawnConfig.default_stack_size (16MB) for other platforms. -
thread_start_params:ThreadStartParams
Argument tuple forns.onThreadStart(). Default to{}when function is absent`. -
thread_end_params:ThreadEndParams
Argument tuple forns.onThreadEnd(). Default to{}when function is absent`.