LockTaskList() | NextTaskEntry() | QueryTaskTagList() | UnLockTaskList() |
struct TaskList * LockTaskList( ULONG flags );
flags -
Handle to the task list. This is not a direct pointer to the first list element but to a pseudo element instead.
struct Task * NextTaskEntry( struct TaskList * tlist, ULONG flags );
Looks for the next task list entry with the right type. The list must be locked for this.
tlist - the value given by LockTaskList() flags - the same flags as given to LockTaskList() or a subset of them.
Pointer to task entry found or NULL if the are no more entries.
void QueryTaskTagList( struct Task * task, struct TagItem * tagList ); void QueryTaskTags( struct Task * task, TAG tag, ... );
Provides information about selected system Task
Function takes an array of tags. Data is returned for each tag. See specific tag description.
TaskTag_CPUNumber - (IPTR *) Returns the CPU Number the task is currently running on TaskTag_CPUAffinity - (IPTR *) Returns the CPU Affinity mask TaskTag_CPUTime - (struct timeval *) Returns the amount of cpu time a task has used . TaskTag_StartTime - (struct timeval *) Returns the time the task was launched .
None
void UnLockTaskList( ULONG flags );
Frees a lock on the task lists given by LockTaskList().
flags - the same value as given to LockTaskList().