mlt 0.7.6
Public Member Functions | Data Fields

mlt_cache_item_s Struct Reference

Cache item class. More...

Public Member Functions

void mlt_cache_item_close (mlt_cache_item item)
 Close a cache item.

Data Fields

mlt_cache cache
 a reference to the cache to which this belongs
void * data
 the opaque pointer to the cached data
mlt_destructor destructor
 a function to release or destroy the cached data
void * object
 a parent object to the cache data that uniquely identifies this cached item
int refcount
 a reference counter to control when destructor is called
int size
 the size of the cached data

Detailed Description

Cache item class.

A cache item is a structure holding information about a data object including a reference count that is used to control its lifetime. When you get a a cache item from the cache, you hold a reference that prevents the data from being released when the cache is full and something new is added. When you close the cache item, the reference count is decremented. The data object is destroyed when all cache items are closed and the cache releases its reference.


Member Function Documentation

void mlt_cache_item_close ( mlt_cache_item  item)

Close a cache item.

Release a reference and call the destructor on the data object when all references are released.

Parameters:
itema cache item

Field Documentation

a reference to the cache to which this belongs

the opaque pointer to the cached data

a function to release or destroy the cached data

a parent object to the cache data that uniquely identifies this cached item

a reference counter to control when destructor is called

the size of the cached data


The documentation for this struct was generated from the following file:
TWiki Appliance - Powered by TurnKey Linux