summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2021-07-13 13:16:17 +0200
committerAndreas Klebinger <klebinger.andreas@gmx.at>2021-07-13 13:16:17 +0200
commite99de7b063cd6791d3f25bc087828c6968beb4d0 (patch)
tree5b211c3fa1ab23fa8706b685879e177b967b3999
parent9d221ba0ebc2a38b4dad15a2a3cd4a2a347b2ccc (diff)
downloadhaskell-wip/signal_thread.tar.gz
Use pthread if available on linuxwip/signal_thread
-rw-r--r--rts/posix/Ticker.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/rts/posix/Ticker.c b/rts/posix/Ticker.c
index 23308b6808..0b2dd25bbd 100644
--- a/rts/posix/Ticker.c
+++ b/rts/posix/Ticker.c
@@ -62,12 +62,12 @@
#endif
/*
- * On Linux in the threaded RTS we can use timerfd_* (introduced in Linux
+ * On Linux we can use timerfd_* (introduced in Linux
* 2.6.25) and a thread instead of alarm signals. It avoids the risk of
* interrupting syscalls (see #10840) and the risk of being accidentally
* modified in user code using signals.
*/
-#if defined(linux_HOST_OS) && defined(THREADED_RTS) && HAVE_SYS_TIMERFD_H
+#if defined(linux_HOST_OS) && HAVE_SYS_TIMERFD_H
#define USE_PTHREAD_FOR_ITIMER
#endif
@@ -101,9 +101,7 @@ ghc-stage2: timer_create: Not owner
#if defined(USE_PTHREAD_FOR_ITIMER)
#include "ticker/Pthread.c"
#elif defined(USE_TIMER_CREATE)
- //#error TimerCreate
#include "ticker/TimerCreate.c"
#else
- //#error Setitimer
#include "ticker/Setitimer.c"
#endif