Defines the semi-managed class
Marcel Sondaar
Public Domain
mcobject.bi | Defines the semi-managed class |
MCObject | Provides basic memory functionality for the library |
Variables | |
mRefcount | Contains the amount of pending references. |
mAutocount | Amount of non-ownership references to this object. |
mAutoNext | Pointer to the next object with an autorelease count This pointer forms a linked list of all objects which have a pending release |
Functions | |
Retain | Claim (co-)ownership of an object |
Release | Release ownership of an object |
Autorelease | Release ownership of an object, while keeping it temporarily alive for a calling function to reacquire ownership |
Flush | Called by a memory management tool to inform that there are no stack references left in use. |
Provides basic memory functionality for the library
Variables | |
mRefcount | Contains the amount of pending references. |
mAutocount | Amount of non-ownership references to this object. |
mAutoNext | Pointer to the next object with an autorelease count This pointer forms a linked list of all objects which have a pending release |
Functions | |
Retain | Claim (co-)ownership of an object |
Release | Release ownership of an object |
Autorelease | Release ownership of an object, while keeping it temporarily alive for a calling function to reacquire ownership |
Flush | Called by a memory management tool to inform that there are no stack references left in use. |
mRefcount As Integer
Contains the amount of pending references. This field is one at initialisation, and the object will be deleted when its value reaches zero.
mAutocount As Integer
Amount of non-ownership references to this object. Software should always use a non-ownership reference when passing an MCObject type as a return value
mAutoNext As MCObject Ptr
Pointer to the next object with an autorelease count This pointer forms a linked list of all objects which have a pending release
Contains the amount of pending references.
mRefcount As Integer
Amount of non-ownership references to this object.
mAutocount As Integer
Pointer to the next object with an autorelease count This pointer forms a linked list of all objects which have a pending release
mAutoNext As MCObject Ptr
Claim (co-)ownership of an object
Declare Sub Retain()
Release ownership of an object
Declare Sub Release()
Release ownership of an object, while keeping it temporarily alive for a calling function to reacquire ownership
Declare Sub Autorelease()
Called by a memory management tool to inform that there are no stack references left in use.
Declare Sub Flush()