package moonpool

  1. Overview
  2. Docs

Source file util_pool_.ml

1
2
3
4
5
6
7
8
9
10
11
let num_threads ?num_threads () : int =
  let n_domains = D_pool_.n_domains () in

  (* number of threads to run *)
  let num_threads =
    match num_threads with
    | Some j -> max 1 j
    | None -> n_domains
  in

  num_threads
OCaml

Innovation. Community. Security.