diff -r 000000000000 -r 89d6a7a84779 Symbian3/SDK/Source/GUID-BA9A7DF9-258A-5822-9115-E1102D609749.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-BA9A7DF9-258A-5822-9115-E1102D609749.dita Thu Jan 21 18:18:20 2010 +0000 @@ -0,0 +1,27 @@ + + + + + +Ownership of reference counting objects

A reference counting object, a CObject type, may be owned by another. This, in turn, may be owned by yet another.

Ownership simply reflects a natural relationship. For example, a timer is owned by a thread and a thread is owned by a process. These objects are all instances of classes derived from CObject.

A reference counting object assigns ownership of itself to another reference counting object using CObject::SetOwner(). For example:

+... +class CMyobject : public CObject + { + ... + }; +class CTheOwner : public CObject + { + ... + } +... +CMyobject* owned; +CTheOwner* owner; +... +owned->SetOwner(owner); +
\ No newline at end of file