aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2012-03-27 14:22:09 +0200
committerRickard Green <[email protected]>2012-03-27 14:22:09 +0200
commit12723bc4ab1a01c2c1e1fe851f14b838d29898af (patch)
tree5b0afedc5c6ddcb6a09c1698b27fd5acda390ff8
parent83f2fac3765d75ab46bc3871c2ac9a53d683edeb (diff)
downloadotp-12723bc4ab1a01c2c1e1fe851f14b838d29898af.tar.gz
otp-12723bc4ab1a01c2c1e1fe851f14b838d29898af.tar.bz2
otp-12723bc4ab1a01c2c1e1fe851f14b838d29898af.zip
Fix wakeup functionality in no thread support case
-rw-r--r--erts/emulator/sys/common/erl_poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/sys/common/erl_poll.c b/erts/emulator/sys/common/erl_poll.c
index 3817b1e4d5..26858052c4 100644
--- a/erts/emulator/sys/common/erl_poll.c
+++ b/erts/emulator/sys/common/erl_poll.c
@@ -2143,7 +2143,7 @@ ERTS_POLL_EXPORT(erts_poll_wait)(ErtsPollSet ps,
void
ERTS_POLL_EXPORT(erts_poll_interrupt)(ErtsPollSet ps, int set)
{
-#if defined(USE_THREADS)
+#if defined(USE_THREADS) || ERTS_POLL_ASYNC_INTERRUPT_SUPPORT
if (!set)
reset_wakeup_state(ps);
else