[project @ 2005-04-22 11:20:22 by simonmar]
authorsimonmar <unknown>
Fri, 22 Apr 2005 11:20:22 +0000 (11:20 +0000)
committersimonmar <unknown>
Fri, 22 Apr 2005 11:20:22 +0000 (11:20 +0000)
rtsSupportsBoundThreads, isThreadBound: these should return rtsTrue
for SMP too.

ghc/rts/Schedule.c

index ed76cb0..aca935b 100644 (file)
@@ -1958,7 +1958,7 @@ scheduleDoGC( Capability *cap STG_UNUSED )
 StgBool
 rtsSupportsBoundThreads(void)
 {
-#ifdef THREADED_RTS
+#if defined(RTS_SUPPORTS_THREADS)
   return rtsTrue;
 #else
   return rtsFalse;
@@ -1972,7 +1972,7 @@ rtsSupportsBoundThreads(void)
 StgBool
 isThreadBound(StgTSO* tso USED_IN_THREADED_RTS)
 {
-#ifdef THREADED_RTS
+#if defined(RTS_SUPPORTS_THREADS)
   return (tso->main != NULL);
 #endif
   return rtsFalse;