template<typename T_CallbackFunctionType>
struct DtCallbackFunctionInfo< T_CallbackFunctionType >
DtCallbackList; DtNoArgumentCallbackList.
This is a templated class which manages a list of callbacks. A class is instantiated from this template by specifying the argument to be passed into the callback function. A callback function signature is created by this class (as the DtCallbackFunctionType definition) using the specified argument.
- Note
- It is safe to add and remove callbacks from this table during callback invokation, so callbacks functions may safely remove themselves.
-
It is safe to add and remove callbacks simultaneously from multiple threads.
-
A version of this class for callback with no arguments is DtNoArgumentCallbackList.