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)
commit6ff106616c1c98542df0a1763f0f9f655b2c8dd5
treeb8a37ba81c1bfda160359c7c9742f5daceac5463
parentfd0529940130b3991e6bb51d1e2a870e614f829b
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