Changeset 846 for trunk/src/corelib/tools/qsharedpointer.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/corelib/tools/qsharedpointer.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 68 68 QSharedPointer and QWeakPointer are thread-safe and operate 69 69 atomically on the pointer value. Different threads can also access 70 the same QSharedPointer or QWeakPointer object at the same time71 without need for locking mechanisms.70 the 71 without need for locking mechanisms. 72 72 73 73 It should be noted that, while the pointer value can be accessed … … 396 396 \section1 Tracking QObject 397 397 398 QWeakPointer can be used to track deletion classes derivesfrom QObject,398 QWeakPointer can be used to track deletion classes from QObject, 399 399 even if they are not managed by QSharedPointer. When used in that role, 400 400 QWeakPointer replaces the older QPointer in all use-cases. QWeakPointer … … 483 483 another QSharedPointer object or deleted outside this object. 484 484 485 The \a deleter param ter specifies the custom deleter for this485 The \a deleter paramter specifies the custom deleter for this 486 486 object. The custom deleter is called when the strong reference 487 487 count drops to 0 instead of the operator delete(). This is useful, … … 1164 1164 1165 1165 \brief The qSharedPointerObjectCast function is for casting a shared pointer. 1166 1166 1167 1167 Returns a shared pointer to the pointer held by \a other, using a 1168 1168 \l qobject_cast() to type \tt X to obtain an internal pointer of the … … 1433 1433 1434 1434 //qDebug("Adding d=%p value=%p", d_ptr, ptr); 1435 1435 1436 1436 const void *other_d_ptr = kp->dataPointers.value(ptr, 0); 1437 1437 if (other_d_ptr) {
Note:
See TracChangeset
for help on using the changeset viewer.