XLL+ Class Library (7.0)

LockableHandleCache<T>::LockableHandleCache<T>

Constructs a LockableHandleCache object

LockableHandleCache<T>(
   CHandleFormatter<T>* formatter = 0,
   TCHAR sep = ':'
);

Parameters

formatter

A pointer to an object derived from CHandleFormatter<T>. If set to 0, then a default formatter will be created.

sep

The separator which will be used to separate the handle and the extra data added from the lock token. This should be the same as the separator used for the handle formatter. Set it to ':' to imitate the default handle formatter.

Remarks

Once the formatter object has been passed to the constructor, the object is owned by the HandleCache, and will be deleted by it at the appropriate time. The developer should not delete instances of formatters that have been passed to the constructor. The developer should not create instances of formatters on the stack; they must be created on the heap, using new.

Requirements

Header: rtdhandleslock.h

See Also

LockableHandleCache<T> Class | LockableHandleCache<T> Methods