Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/domainpc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ let cpus_per_core = Queue.create ()
let initialized = ref false

let get_available_cores () =
if !initialized then Queue.length cpus_per_core else Processor.Query.cpu_count
if !initialized then Queue.length cpus_per_core
else Processor.Query.core_count

(** The mode in which the library is used. It is dermined from the first call to
`spawn` or `spawn_n` *)
Expand Down