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 to 1.
  • stack_size: usize
    Size of thread stack in bytes. Defaults to 262144 (256K) for WASM and 1048576 (1MB) 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`.

WorkQueue(ns) | ThreadStartParams | ThreadEndParams