X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FSparks.c;h=21dbdc98bb4c30d7c7e09f3a9640971409c9e8dc;hb=272a418428beede04a9c4ae027474878c59d6ca1;hp=9a37d6970bd37e0c32c38eb099f1536f75534396;hpb=20fc2f0ced64a12d8e44956931b2ac341ed2186f;p=ghc-hetmet.git diff --git a/ghc/rts/Sparks.c b/ghc/rts/Sparks.c index 9a37d69..21dbdc9 100644 --- a/ghc/rts/Sparks.c +++ b/ghc/rts/Sparks.c @@ -1,5 +1,5 @@ /* --------------------------------------------------------------------------- - * $Id: Sparks.c,v 1.3 2001/03/22 03:51:10 hwloidl Exp $ + * $Id: Sparks.c,v 1.7 2003/11/12 17:49:11 sof Exp $ * * (c) The GHC Team, 2000 * @@ -20,6 +20,7 @@ //@node Includes, GUM code, Spark Management Routines, Spark Management Routines //@subsection Includes +#include "PosixSource.h" #include "Rts.h" #include "Schedule.h" #include "SchedAPI.h" @@ -35,7 +36,7 @@ # endif #include "Sparks.h" -#if defined(SMP) || defined(PAR) +#if /*defined(SMP) ||*/ defined(PAR) //@node GUM code, GranSim code, Includes, Spark Management Routines //@subsection GUM code @@ -525,10 +526,10 @@ activateSpark (rtsEvent *event, rtsSparkQ spark) Granularity info transformers. Applied to the GRAN_INFO field of a spark. */ -static inline nat ID(nat x) { return(x); }; -static inline nat INV(nat x) { return(-x); }; -static inline nat IGNORE(nat x) { return (0); }; -static inline nat RAND(nat x) { return ((random() % MAX_RAND_PRI) + 1); } +STATIC_INLINE nat ID(nat x) { return(x); }; +STATIC_INLINE nat INV(nat x) { return(-x); }; +STATIC_INLINE nat IGNORE(nat x) { return (0); }; +STATIC_INLINE nat RAND(nat x) { return ((random() % MAX_RAND_PRI) + 1); } /* NB: size_info and par_info are currently unused (what a shame!) -- HWL */ //@cindex newSpark @@ -574,7 +575,7 @@ disposeSpark(spark) rtsSpark *spark; { ASSERT(spark!=NULL); - free(spark); + stgFree(spark); } //@cindex disposeSparkQ @@ -594,7 +595,7 @@ rtsSparkQ spark; } # endif - free(spark); + stgFree(spark); } /*