openTRI 0.1
|
Functions | |
triVoid | triRefcountCreate (const triChar *id, triVoid *data) |
Create a new refcount. | |
triVoid * | triRefcountRetain (const triChar *id) |
Retain a refcount. | |
triVoid * | triRefcountRetainPtr (const triVoid *ptr) |
Retain a refcounted pointer. | |
triS32 | triRefcountRelease (const triVoid *data) |
Release a refcount. |
triVoid triRefcountCreate | ( | const triChar * | id, |
triVoid * | data ) |
Create a new refcount.
Call this after triRefcountRetain returned 0.
id | - string identifying the refcount |
data | - pointer to assign to the id |
triVoid * triRefcountRetain | ( | const triChar * | id | ) |
Retain a refcount.
Call this to check if the data assigned to id is already in list.
id | - string identifying the refcount |
triVoid * triRefcountRetainPtr | ( | const triVoid * | ptr | ) |
Retain a refcounted pointer.
Call this to check if the data is already in list.
ptr | - Pointer to data to check |
triS32 triRefcountRelease | ( | const triVoid * | data | ) |
Release a refcount.
Call this to release a refcount matching the data.
data | - Data to release the refcount from |