CAnimationTls Class Reference

class CAnimationTls : public CBase

This is a wrapper around the thread local storage, which simplifies its use for obtaining a CAnimationTicker object that can be shared between animations. The object is reference counted, and only one will exist per thread per DLL at any given time.

You do not need to instantiate an object of this type unless you are writing a new animation type. If you are writing a new animation type it is optional.

CAnimationTicker

Inherits from

Constructor & Destructor Documentation

CAnimationTls()

CAnimationTls()[protected]

~CAnimationTls()

~CAnimationTls()[protected]

Member Functions Documentation

CAnimationTls_Reserved1()

IMPORT_C voidCAnimationTls_Reserved1()[protected, virtual]

Reserved for future use

CAnimationTls_Reserved2()

IMPORT_C voidCAnimationTls_Reserved2()[protected, virtual]

Reserved for future use

Close()

IMPORT_C voidClose()

Decrements the reference counter for this object, and destroys it if the reference count reaches 0. This should be called once for every call to NewL.

NewL()

IMPORT_C CAnimationTls *NewL()[static]

Two-stage constructor.

There is only ever one of these objects in existence. The object is reference counted, and is destroyed only when every call to NewL has been matched by a call to Close.

The new object

Ticker()

IMPORT_C CAnimationTicker *Ticker()

Returns the CAnimationTicker object for this thread. A pointer to the shared ticker object

Member Data Documentation

TInt iCAnimationTls_Reserved

TInt iCAnimationTls_Reserved[private]

TInt iRefCount

TInt iRefCount[protected]

A Reference count of the object

CAnimationTicker * iTimer

CAnimationTicker *iTimer[protected]

This provides timing information for animators