Is wxString threadsafe? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
I live to help wx-kind
I live to help wx-kind
Posts: 178
Joined: Mon Jul 23, 2007 9:01 am

Is wxString threadsafe?

Post by orbitcowboy » Fri Feb 26, 2010 8:27 am

Hi all,

does anybody know if wxString is threadsafe?

A quick form search brought leaded to following thread: ... threadsafe

But i could not find anything in the wxString class reference about thread safety: ... l#wxstring

Thanks in advance

OS: Ubuntu 9.04 (32/64-Bit), Debian Lenny (32-Bit)
Compiler: gcc/g++-4.3.3 , gcc/g++-4.4.0
wxWidgets: 2.8.10,2.9.0

User avatar
Posts: 14768
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Post by doublemax » Fri Feb 26, 2010 9:46 am

No, wxString is not thread-safe.
Use the source, Luke!

Site Admin
Site Admin
Posts: 3967
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Post by DavidHart » Fri Feb 26, 2010 9:51 am


A better thread would have been

As normally used, wxString isn't thread-safe. In wx2.9 there is a workaround in the wxString::Clone function.



Post Reply