AllocTaskStorageSlot()
Synopsis
LONG AllocTaskStorageSlot();
Function
This function will allocate a slot in the task storage.
Result
The allocated SlotID, or 0 if no slotid could be allocated.
Notes
After this function SetTaskStorageSlot(slotid) may be used to store
values with each slotid.
FreeTaskStorageSlot()
Synopsis
void FreeTaskStorageSlot();
Function
This function will free a slot in task storage
Inputs
slotid - The slot id to free.
Notes
Currently no checks are performed to determine if one is the owner
of the slotid. This may be added in the future, so one should
deallocate a slotid from the same task that allocated the slotid.
GetParentTaskStorageSlot()
Synopsis
IPTR GetParentTaskStorageSlot();
Function
Get a value for a task storage slot of parent task.
Inputs
slotid - slot ID returned from AllocTaskStorageSlot().
Result
Value stored by SetTaskStorageSlot() on parent task, or
(IPTR)NULL if the slot was never used.
Notes
Since you are accessing value of another task, the value
might be invalid/freed by the time this function returns.
To be sure value is still valid, call this function under
Forbid().
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.
SetTaskStorageSlot()
Synopsis
BOOL SetTaskStorageSlot();
Function
Puts a new value in a task storage slot. If necessary, the number of
task storage slotalloccnt will be increased.
Inputs
slotid - slot ID returned from AllocTaskStorageSlot().
value - value to store in the slot.
Result
success - TRUE if the value was successfully stored.