![]() |
Home |
|
Function RTKDeallocTerminatedTasksA task that terminates itself (e.g., by reaching the end of its task function) cannot deallocate its own data. Therefore, many unused memory blocks can accumulate if many tasks terminate themselves. To release these memory blocks, function RTKDeallocTerminatedTasks is provided: void RTKDeallocTerminatedTasks(void); Normally, this function need not be called. RTKCreateThread will always deallocate all terminated tasks before a new task is created. Tasks that are terminated but have not yet been deallocated are in the state TS_TERMINATED and will be displayed by RTKTaskInfo.
|