]> git.saurik.com Git - wxWidgets.git/commit - src/unix/evtloopunix.cpp
Avoid overflowing the wake up when handling events in Unix console apps.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 4 Apr 2012 14:36:45 +0000 (14:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 4 Apr 2012 14:36:45 +0000 (14:36 +0000)
commit589046c0bd6abc0836ffc97a6f4ebceea35a79c2
tree6a9fba695c2d9ed913465dd3309558d509faafcb
parentab66414a667682bc37deeda4a03642c74b83bc41
Avoid overflowing the wake up when handling events in Unix console apps.

Generating many wake ups from the worker threads could result in overflowing
the buffer of the pipe used to communicate with the main thread which, in
turn, resulted in other serious problems (deadlocks...).

Avoid this by only writing to the pipe if it is empty.

Closes #14166.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
src/unix/evtloopunix.cpp