]> git.saurik.com Git - wxWidgets.git/commit
Fix, or at least make less common, deadlock in the thread sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Feb 2013 13:48:57 +0000 (13:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Feb 2013 13:48:57 +0000 (13:48 +0000)
commit44f4afd2dadf74f426af5072170d94697a5f0d19
tree7a1f021fd043947317febddd95f5e60e875b7d98
parent4f082fb3a0685321b174f8b7beb8ea357da227a2
Fix, or at least make less common, deadlock in the thread sample.

Don't always deadlock when "Stop the last spawned thread" menu command is
selected. There is still a problem with a race condition which could result in
a crash when dereferencing an invalid pointer, but at least this doesn't
happen all the time, unlike the current bug.

Of course, the real solution would be to properly rewrite the sample to show
how thread deletion should be handled correctly...

See #14891.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
samples/thread/thread.cpp