From a37ee29884eaaf8b177cec19821159c938ddf6ff Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Mon, 7 Mar 2011 17:04:02 +0100 Subject: The emulator could get into a state where it didn't check for I/O. --- erts/emulator/sys/common/erl_poll.c | 1 + 1 file changed, 1 insertion(+) (limited to 'erts/emulator/sys/common/erl_poll.c') diff --git a/erts/emulator/sys/common/erl_poll.c b/erts/emulator/sys/common/erl_poll.c index 77ac2de5f6..3ae5b8d747 100644 --- a/erts/emulator/sys/common/erl_poll.c +++ b/erts/emulator/sys/common/erl_poll.c @@ -347,6 +347,7 @@ reset_wakeup_state(ErtsPollSet ps) { #ifdef ERTS_SMP erts_atomic32_set(&ps->wakeup_state, ERTS_POLL_NOT_WOKEN); + ERTS_THR_MEMORY_BARRIER; #elif ERTS_POLL_ASYNC_INTERRUPT_SUPPORT ps->wakeup_state = 0; #endif -- cgit v1.2.3