X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FSchedule.c;h=c845c3d51a636d32eb278767279172636b1cb474;hb=4bd153f2dd93745183584054e17c6ff169691a49;hp=9e2a5d053a481490f2859708d317994387854dc6;hpb=6fd47823d987745c6dee66467ad138f8ddcb8446;p=ghc-hetmet.git diff --git a/ghc/rts/Schedule.c b/ghc/rts/Schedule.c index 9e2a5d0..c845c3d 100644 --- a/ghc/rts/Schedule.c +++ b/ghc/rts/Schedule.c @@ -216,7 +216,9 @@ void addToBlockedQueue ( StgTSO *tso ); static void schedule ( StgMainThread *mainThread, Capability *initialCapability ); void interruptStgRts ( void ); +#if !defined(PAR) && !defined(RTS_SUPPORTS_THREADS) static void detectBlackHoles ( void ); +#endif #if defined(RTS_SUPPORTS_THREADS) /* ToDo: carefully document the invariants that go together @@ -3286,6 +3288,7 @@ resurrectThreads( StgTSO *threads ) * Locks: sched_mutex is held upon entry and exit. * -------------------------------------------------------------------------- */ +#if !defined(PAR) && !defined(RTS_SUPPORTS_THREADS) static void detectBlackHoles( void ) { @@ -3336,6 +3339,7 @@ detectBlackHoles( void ) done: ; } } +#endif /* ---------------------------------------------------------------------------- * Debugging: why is a thread blocked