zigar.thread.WorkQueue(ns).Options - chung-leong/zigar GitHub Wiki
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 and1048576
(1MB) 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`.