src/Pure/ML-Systems/polyml-5.5.2.ML
author wenzelm
Tue, 31 Mar 2015 20:18:10 +0200
changeset 59884 bbf49d7dfd6f
parent 54726 5285805af26c
permissions -rw-r--r--
tuned signature;

(*  Title:      Pure/ML-Systems/polyml-5.5.2.ML
    Author:     Makarius

Compatibility wrapper for Poly/ML 5.5.2.
*)

structure Thread =
struct
  open Thread;

  structure Thread =
  struct
    open Thread;

    fun numProcessors () =
      (case Thread.numPhysicalProcessors () of
        SOME n => n
      | NONE => Thread.numProcessors ());
  end;
end;

use "ML-Systems/polyml.ML";