(C) 1998 AROS - The Amiga Research OS


NAME
#include <exec/tasks.h>
#include <proto/alib.h>

struct Task * CreateTask ()

SYNOPSIS
STRPTR name
LONG pri
APTR initpc
ULONG stacksize

FUNCTION
Create a new task.

INPUTS
name
Name of the task. The string is not copied. Note that task names' need not be unique.
pri
The initial priority of the task (normally 0)
initpc
The address of the first instruction of the task. In most cases, this is the address of a function.
stacksize
The size of the stack for the task. Always keep in mind that the size of the stack must include the amount of stack which is needed by the routines called by the task.

RESULT
A pointer to the new task or NULL on failure.

EXAMPLE

SEE ALSO

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
27.01.1997 ldp
Include proto instead of clib
04.12.1996 aros
The macros AROS_SLOWSTACKTAGS and AROS_SLOWSTACKMETHODS now use AROS_TAGRETURNTYPE and AROS_METHODRETURNTYPE to create a variable called retval in which the use suplied part of the function must store the return value. If these types are not defined, then the types default to IPTR.