Skip to content

zigar.thread.WorkQueue(ns).Options

Chung Leong edited this page Feb 15, 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 to 1.
  • stack_size: usize
    Size of thread stack in bytes. Defaults to 262144 for WASM and 1048576 for other platforms.
  • thread_start_params: ThreadStartParams
    Argument tuple for ns.onThreadStart(). Default to {} when function is absent`.
  • thread_end_params: ThreadEndParams
    Argument tuple for ns.onThreadEnd(). Default to {} when function is absent`.

Clone this wiki locally