]> git.saurik.com Git - wxWidgets.git/commit
Don't use delayed destruction for sockets in other threads.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 20 Jul 2012 11:54:56 +0000 (11:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 20 Jul 2012 11:54:56 +0000 (11:54 +0000)
commitee5cc6302e3bb8285304ad3a8e2aabb4fdcdeb36
treed8e325330bb5469aba5fc9b3049829952e1d6608
parenta4cb8587164bcadbc8a85ddac5c4a6dbfc43e2aa
Don't use delayed destruction for sockets in other threads.

The delayed destruction mechanism is not MT-safe, so using it for wxSocket
objects destroyed from threads other than main resulted in crashes. Luckily,
it is not necessary to use it for such sockets anyhow as they don't risk
receiving any events -- which are only dispatched in the main thread -- and so
can be destroyed immediately.

So do destroy them directly instead of just scheduling for later destruction
when wxSocket::Destroy() is called.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/socket.cpp