-
Notifications
You must be signed in to change notification settings - Fork 6
zigar.thread.WorkQueue(ns).Options
Chung Leong edited this page Mar 19, 2025
·
10 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 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`.