]> git.saurik.com Git - wxWidgets.git/commit
Don't block the main UI thread while generating completions in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 16 Apr 2011 17:27:30 +0000 (17:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 16 Apr 2011 17:27:30 +0000 (17:27 +0000)
commite71e4c932a4e9e77207f968b150b51d5009408b5
treeda90ab684100e1af27f8a18ac1a5948eb4970500
parentb9a46ea5a205d5959cb5f9c3e4fa1b229182af61
Don't block the main UI thread while generating completions in wxMSW.

The native IAutoComplete implementation takes care to retrieve the completions
from a background thread to prevent the UI from freezing while they're being
generated, but we worked against it by always generating all the completions
from the main thread and just enumerating them from the background one.

Change this now and call wxTextCompleter::GetCompletions() method from the
background thread itself to never block the main one.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
interface/wx/textcompleter.h
src/msw/textentry.cpp