[wx-dev] Re: wxString(s.c_str()) thread safety (was Re:
wxString threadsafe)
Robert Roebling
robert at roebling.de
Fri May 2 05:20:13 PDT 2008
Vadim Zeitlin wrote:
> Hajo Kirchhoff wrote:
>
> HK> So my strong wish for wxWidgets 2.9 and up would be to have a thread
> HK> safe wxString class by default.
>
> On most platforms this would be achieved by simply making wxUSE_STL=1
> the default so it's another argument in its favour.
I must be the only one who overlooked this. But anyway, what is this
an argument for: remove reference counting from the non-STL based
wxString, use STL, not use STL?
Having a thread-safe wxString class in STL mode and one that is not
thread-safe and has (very?) different performance characteristics in
non-STL mode doesn't look optimal.
> Of course, with wxUSE_STL=1 we don't have implicit c_str() any longer
> which is a problem on its own :-(
What is the problem with that?
Robert
More information about the wx-dev
mailing list