package corecount

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Get a count of cores on the current machine, simple exposure of http://en.cppreference.com/w/cpp/thread/thread/hardware_concurrency

exception Count_not_defined

Raised when the value is not well defined or not computable

val count : unit -> Nativeint.t

Returns the number of cores on the current machine

OCaml

Innovation. Community. Security.