http://www.aros.orgAROS-ExecAROS-Exec ArchivesPower2People
kitty mascottop logo menu

task

Index


LockTaskList() NextTaskEntry() QueryTaskTagList() UnLockTaskList()

LockTaskList()

Synopsis

struct TaskList * LockTaskList(
         ULONG flags );

Inputs

flags -
      LTF_WRITE     Lock The TaskList for writing
                    NB: In general software SHOULDNT
                        need to use this!

      LTF_RUNNING   Lock The TaskList to show running tasks.
      LTF_READY     Lock The TaskList to show ready tasks.
      LTF_WAITING   Lock The TaskList to show waiting/spinning tasks.
      LTF_ALL       Lock The TaskList to show all of the above tasks.

Result

Handle to the task list. This is not a direct pointer
to the first list element but to a pseudo element instead.

NextTaskEntry()

Synopsis

struct Task * NextTaskEntry(
         struct TaskList * tlist,
         ULONG flags );

Function

Looks for the next task list entry with the right type. The list
must be locked for this.

Inputs

tlist - the value given by LockTaskList()
flags - the same flags as given to LockTaskList() or a subset
        of them.

Result

Pointer to task entry found or NULL if the are no more entries.

QueryTaskTagList()

Synopsis

void QueryTaskTagList(
         struct Task * task,
         struct TagItem * tagList );

void QueryTaskTags(
         struct Task * task,
         TAG tag, ... );

Function

Provides information about selected system Task

Inputs

Function takes an array of tags. Data is returned for each tag. See
specific tag description.

Tags

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 .

Result

None

UnLockTaskList()

Synopsis

void UnLockTaskList(
         struct TaskList * tlist,
         ULONG flags );

Function

Frees a lock on the task lists given by LockTaskList().

Inputs

flags - the same value as given to LockTaskList().

Copyright © 1995-2017, The AROS Development Team. All rights reserved.
Amiga®, AmigaOS®, Workbench und Intuition sind eingetragene Warenzeichen von Amiga Inc. Alle anderen Warenzeichen gehören dem jeweiligen Besitzer.