diff options
author | Rickard Green <[email protected]> | 2011-03-07 17:04:02 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2011-03-08 09:47:52 +0100 |
commit | a37ee29884eaaf8b177cec19821159c938ddf6ff (patch) | |
tree | 192cdf554814a4ebf6d354443a9a607417fd2efd /erts/emulator/sys/common/erl_poll.c | |
parent | 422c3eda25ce9cb67a815aac5b0254432b0d44f7 (diff) | |
download | otp-a37ee29884eaaf8b177cec19821159c938ddf6ff.tar.gz otp-a37ee29884eaaf8b177cec19821159c938ddf6ff.tar.bz2 otp-a37ee29884eaaf8b177cec19821159c938ddf6ff.zip |
The emulator could get into a state where it didn't check for I/O.
Diffstat (limited to 'erts/emulator/sys/common/erl_poll.c')
-rw-r--r-- | erts/emulator/sys/common/erl_poll.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |