Make _() and friends safe to call from any thread.
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 18 Sep 2013 16:03:20 +0000 (16:03 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 18 Sep 2013 16:03:20 +0000 (16:03 +0000)
commitd2740de55efc52e8dc9270c0e17db921a379a049
tree557f9e183d6a1348601eaa8e97a41a7b2493b6b5
parent92c0fc34c104c8d7c12d6a3b78ea232690fc23f4
Make _() and friends safe to call from any thread.

The GetUntranslatedString() hack keeps a global copy of all strings, so
that it can return a const reference as wxGetTranslation() return value.
A global wxHashSet instance shared by all threads won't do, even guarded
with a critical section, because it may internally copy values on any
insert and thus invalidate pointers that may still be used on another
thread.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
include/wx/private/threadinfo.h
interface/wx/translation.h
src/common/translation.cpp