diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-BA9A7DF9-258A-5822-9115-E1102D609749.dita --- a/Symbian3/PDK/Source/GUID-BA9A7DF9-258A-5822-9115-E1102D609749.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-BA9A7DF9-258A-5822-9115-E1102D609749.dita Tue Mar 30 11:56:28 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