src/Pure/ML-Systems/polyml-5.1.ML
changeset 26381 509a1ca9d35c
child 26389 3835c431e141
equal deleted inserted replaced
26380:5d368eb42c11 26381:509a1ca9d35c
       
     1 (*  Title:      Pure/ML-Systems/polyml-5.1.ML
       
     2     ID:         $Id$
       
     3 
       
     4 Compatibility wrapper for Poly/ML 5.1.
       
     5 *)
       
     6 
       
     7 use "ML-Systems/polyml_common.ML";
       
     8 use "ML-Systems/multithreading_polyml.ML";
       
     9 
       
    10 val pointer_eq = PolyML.pointerEq;
       
    11 
       
    12 
       
    13 (* single-threaded profiling *)
       
    14 
       
    15 local val profile_orig = profile in
       
    16 
       
    17 fun profile 0 f x = f x
       
    18   | profile n f x = NAMED_CRITICAL "profile" (fn () => profile_orig n f x);
       
    19 
       
    20 end;
       
    21