src/Pure/RAW/ROOT_polyml-5.6.ML
author wenzelm
Mon, 15 Feb 2016 14:55:44 +0100
changeset 62337 d3996d5873dd
parent 62077 e8ae72c26025
permissions -rw-r--r--
proper syntax;

(*  Title:      Pure/RAW/ROOT_polyml-5.6.ML
    Author:     Makarius

Compatibility wrapper for Poly/ML 5.6.
*)

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 "RAW/ROOT_polyml.ML";