[project @ 2002-02-04 20:12:08 by sof]
authorsof <unknown>
Mon, 4 Feb 2002 20:12:09 +0000 (20:12 +0000)
committersof <unknown>
Mon, 4 Feb 2002 20:12:09 +0000 (20:12 +0000)
stat_getElapsedTime(): now visible when RTS_SUPPORTS_THREADS is defined (was: SMP only)

ghc/rts/Stats.c
ghc/rts/Stats.h

index fab773c..9002164 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Stats.c,v 1.42 2002/01/24 07:50:01 sof Exp $
+ * $Id: Stats.c,v 1.43 2002/02/04 20:12:08 sof Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -579,7 +579,7 @@ stat_endHeapCensus(void)
    stats for this thread into the task_ids struct for that thread.
    -------------------------------------------------------------------------- */
 
-#ifdef SMP
+#if defined(SMP)
 void
 stat_workerStop(void)
 {
@@ -599,7 +599,9 @@ stat_workerStop(void)
        }
     }
 }
+#endif
 
+#if defined(RTS_SUPPORTS_THREADS)
 long int stat_getElapsedTime ()
 {
   getTimes();
index d6ab463..7365f54 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Stats.h,v 1.15 2002/01/24 07:50:02 sof Exp $
+ * $Id: Stats.h,v 1.16 2002/02/04 20:12:09 sof Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -47,6 +47,6 @@ extern double    mut_user_time_during_heap_census(void);
 extern void      statDescribeGens( void );
 extern HsInt     getAllocations( void );
 
-#ifdef SMP
+#if defined(RTS_SUPPORTS_THREADS)
 extern long int  stat_getElapsedTime ( void );
 #endif