mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-10 05:03:58 -05:00
fix: d_pool: fix for ocaml < 5.0
This commit is contained in:
parent
bc7c6b253e
commit
71981e437c
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ let domains_ : worker array lazy_t =
|
|||
lazy
|
||||
((* number of domains we spawn. Note that we spawn n-1 domains
|
||||
because there already is the main domain running. *)
|
||||
let n = Domain_.recommended_number () - 1 in
|
||||
let n = max 1 (Domain_.recommended_number () - 1) in
|
||||
Array.init n (fun i ->
|
||||
let q = Bb_queue.create () in
|
||||
let _domain : domain = Domain_.spawn (fun () -> work_ i q) in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue