diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-BA9A7DF9-258A-5822-9115-E1102D609749.dita --- a/Symbian3/PDK/Source/GUID-BA9A7DF9-258A-5822-9115-E1102D609749.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-BA9A7DF9-258A-5822-9115-E1102D609749.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,27 +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); + + + + + +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