X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FTimer.c;fp=rts%2FTimer.c;h=b4f5f8f130bebb752fdc9a87813b5232569868eb;hb=7434fb5be86c7cc59c520dc07dc96b27b4fb1406;hp=4b13be45565115ed4fbad0994d811803470e2b2f;hpb=5a2769f0273dd389977e8283375e7920d183bdd4;p=ghc-hetmet.git diff --git a/rts/Timer.c b/rts/Timer.c index 4b13be4..b4f5f8f 100644 --- a/rts/Timer.c +++ b/rts/Timer.c @@ -72,20 +72,8 @@ handle_tick(int unused STG_UNUSED) blackholes_need_checking = rtsTrue; /* hack: re-use the blackholes_need_checking flag */ -#if !defined(mingw32_HOST_OS) - // This forces the IO Manager thread to wakeup, which will - // in turn ensure that some OS thread wakes up and runs the - // scheduler loop, which will cause a GC and deadlock check. - ioManagerWakeup(); -#else - /* ToDo: this doesn't work. Can't invoke - * pthread_cond_signal from a signal handler. - * Furthermore, we can't prod a capability that we - * might be holding. What can we do? - */ - prodOneCapability(); -#endif } + wakeUpRts(); break; default: break;