inline void SetTaskManager(TaskManager * ptr);
SetTaskManager sets an interface to TaskManager to implement a queue for executing tasks.