Nb2Qt
22nd August 2008, 09:09
The Qt docs on QPointers (http://doc.trolltech.com/4.4/qpointer.html) don't specifically mention anything about thread safety. If used across multiple threads, do they somehow magically guarantee that the object doesn't get deleted between the check and the usage?
if (p!=0)
p->doSomething();
Looking at the source code it appears that they are not thread safe. True? If so, then I'll submit a sug to have the docs updated.
-RobF
if (p!=0)
p->doSomething();
Looking at the source code it appears that they are not thread safe. True? If so, then I'll submit a sug to have the docs updated.
-RobF