projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ece0e4
)
[project @ 2004-12-08 10:29:01 by simonmar]
author
simonmar
<unknown>
Wed, 8 Dec 2004 10:29:01 +0000
(10:29 +0000)
committer
simonmar
<unknown>
Wed, 8 Dec 2004 10:29:01 +0000
(10:29 +0000)
deleteThread: don't attempt to delete threads blocked in foreign calls.
ghc/rts/Schedule.c
patch
|
blob
|
history
diff --git
a/ghc/rts/Schedule.c
b/ghc/rts/Schedule.c
index
09c4602
..
ab82e9e
100644
(file)
--- a/
ghc/rts/Schedule.c
+++ b/
ghc/rts/Schedule.c
@@
-3013,7
+3013,10
@@
unblockThread(StgTSO *tso)
void
deleteThread(StgTSO *tso)
{
- raiseAsync(tso,NULL);
+ if (tso->why_blocked != BlockedOnCCall &&
+ tso->why_blocked != BlockedOnCCall_NoUnblockExc) {
+ raiseAsync(tso,NULL);
+ }
}
#ifdef FORKPROCESS_PRIMOP_SUPPORTED