Location:
AnimationTls.h
Link against: animationshared.lib
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.
CBase
- Base class for all classes to be instantiated on the heap
CAnimationTls
- This is a wrapper around the thread local storage, which simplifies its use for obtaining a
Defined in CAnimationTls
:
CAnimationTls_Reserved1()
, CAnimationTls_Reserved2()
, Close()
, NewL()
, Ticker()
, iRefCount
, iTimer
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
static IMPORT_C CAnimationTls *NewL();
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.
|
IMPORT_C void Close();
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.
IMPORT_C CAnimationTicker *Ticker();
Returns the CAnimationTicker
object for this thread.
|
protected: CAnimationTicker * iTimer;
This provides timing information for animators