improvement to the deadlock detection
authorSimon Marlow <simonmar@microsoft.com>
Thu, 9 Feb 2006 12:30:56 +0000 (12:30 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 9 Feb 2006 12:30:56 +0000 (12:30 +0000)
commit7b2ff4cc95ce49081d84c25184aec796377fbc35
treefcdafcb1e8a6921aedaf6aaccbf6218c58f9069c
parentad68b91e2126681fba942f3038bcf32f9a1e7259
improvement to the deadlock detection

When the RTS is idle, as detected by the timer signal, instead of
prodding capabilities from the signal handler (which is not guaranteed
to work - pthread_cond_signal() can't be called from signal handlers),
create a new thread to do it.
ghc/rts/Timer.c