diff options
author | Dan Gudmundsson <[email protected]> | 2017-03-21 11:59:14 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2017-04-06 15:45:06 +0200 |
commit | b901918e7616dd346bfeb3e3c22be608a27f8da4 (patch) | |
tree | 76f03bc8142886b8d2995fcbc4c63fe8521d6509 /lib/wx/c_src/wxe_impl.h | |
parent | 7504aef08abb050d5c3d56f77704d21e15a85b62 (diff) | |
download | otp-b901918e7616dd346bfeb3e3c22be608a27f8da4.tar.gz otp-b901918e7616dd346bfeb3e3c22be608a27f8da4.tar.bz2 otp-b901918e7616dd346bfeb3e3c22be608a27f8da4.zip |
Avoid livelock in driver when batching commands
With a bad timing in wx:batch() the driver could get stuck
handling commands without ever checking for gui events.
Avoid that by exiting loop after the driver have done cond_wait a
couple of times.
Diffstat (limited to 'lib/wx/c_src/wxe_impl.h')
-rw-r--r-- | lib/wx/c_src/wxe_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wx/c_src/wxe_impl.h b/lib/wx/c_src/wxe_impl.h index 57dac997ab..68f5deb336 100644 --- a/lib/wx/c_src/wxe_impl.h +++ b/lib/wx/c_src/wxe_impl.h @@ -73,7 +73,7 @@ public: void wxe_dispatch(wxeCommand& event); void idle(wxIdleEvent& event); - void dispatch_cmds(); + int dispatch_cmds(); void dummy_close(wxEvent& Ev); bool sendevent(wxEvent *event); |