projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tidy up the treatment of newtypes, refactor, and fix Trac #736
[ghc-hetmet.git]
/
rts
/
Schedule.c
diff --git
a/rts/Schedule.c
b/rts/Schedule.c
index
441e979
..
afd8c28
100644
(file)
--- a/
rts/Schedule.c
+++ b/
rts/Schedule.c
@@
-2577,7
+2577,8
@@
initScheduler(void)
}
void
}
void
-exitScheduler( void )
+exitScheduler( rtsBool wait_foreign )
+ /* see Capability.c, shutdownCapability() */
{
Task *task = NULL;
{
Task *task = NULL;
@@
-2599,7
+2600,7
@@
exitScheduler( void )
nat i;
for (i = 0; i < n_capabilities; i++) {
nat i;
for (i = 0; i < n_capabilities; i++) {
- shutdownCapability(&capabilities[i], task);
+ shutdownCapability(&capabilities[i], task, wait_foreign);
}
boundTaskExiting(task);
stopTaskManager();
}
boundTaskExiting(task);
stopTaskManager();