src/Pure/ML-Systems/polyml-5.6.ML
changeset 61925 ab52f183f020
parent 61924 55b3d21ab5e5
child 61926 17ba31a2303b
equal deleted inserted replaced
61924:55b3d21ab5e5 61925:ab52f183f020
     1 (*  Title:      Pure/ML-Systems/polyml-5.6.ML
       
     2     Author:     Makarius
       
     3 
       
     4 Compatibility wrapper for Poly/ML 5.6.
       
     5 *)
       
     6 
       
     7 structure Thread =
       
     8 struct
       
     9   open Thread;
       
    10 
       
    11   structure Thread =
       
    12   struct
       
    13     open Thread;
       
    14 
       
    15     fun numProcessors () =
       
    16       (case Thread.numPhysicalProcessors () of
       
    17         SOME n => n
       
    18       | NONE => Thread.numProcessors ());
       
    19   end;
       
    20 end;
       
    21 
       
    22 use "ML-Systems/polyml.ML";