On Fri, Sep 02, 2011 at 02:04:51AM +0200, Daniel Bünzli wrote:
> Hello,
> 
> Can anybody confirm me that the following code works on cygwin :
> 
> let cpu_count () =
>   try match Sys.os_type with
>   | "Win32" -> int_of_string (Sys.getenv "NUMBER_OF_PROCESSORS")
>   | _ ->
>       let i = Unix.open_process_in "getconf _NPROCESSORS_ONLN" in

Don't know about Cygwin, but it won't work on MinGW.

Rich.

-- 
Richard Jones
Red Hat

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to