home *** CD-ROM | disk | FTP | other *** search
-
- {
- Tasks.i
-
- Declares the actual Task record, as well as the CreateTask
- and DeleteTask functions, which are located in PCQ.lib. The
- source for CreateTask and DeleteTask is in the RunTime directory,
- under Extras.
- }
-
- {$I "Include/Ports.i"}
-
- TYPE
- Task = RECORD
- tcNode : Node;
- tcFlags : Byte;
- tcState : Byte;
- tcIDNestCnt : Byte;
- tcTDNestCnt : Byte;
- tcSigAlloc : Integer;
- tcSigWait : Integer;
- tcSigRecvd : Integer;
- tcSigExcept : Integer;
- tcTrapAlloc : Short;
- tcTrapAble : Short;
- tcExceptData : Address;
- tcExceptCode : Address;
- tcTrapData : Address;
- tcTrapCode : Address;
- tcSPReg : Address;
- tcSPLower : Address;
- tcSPUpper : Address;
- tcSwitch : Address;
- tcLaunch : Address;
- tcMemEntry : List;
- tcUserData : Address;
- end;
- TaskPtr = ^Task;
-
- Function CreateTask(name : String; pri : Byte;
- initPC : Address; stackSize : Integer) : TaskPtr;
- External;
-
- Procedure DeleteTask(tc : TaskPtr);
- External;
-