home *** CD-ROM | disk | FTP | other *** search
/ Dream 45 / Amiga_Dream_45.iso / Amiga / emulation / d64edir.lha / inc / exec / tasks.h < prev   
Text File  |  1997-05-06  |  2KB  |  64 lines

  1. {$ifndef EXEC_TASKS_H    ***** EXEC/TASKS.H *****}
  2. CONST EXEC_TASKS_H = 0;
  3. {$ifndef EXEC_NODES_H;incl"exec/nodes.h";endif}
  4. {$ifndef EXEC_LISTS_H;incl"exec/lists.h";endif}
  5. TYPE p_Task = ^Task;
  6.      Task = record
  7.               tc_Node: Node;
  8.               tc_Flags, tc_State: Byte;
  9.               tc_IDNestCnt, tc_TDNestCnt: Short;
  10.               tc_SigAlloc, tc_SigWait, tc_SigRecvd, tc_SigExcept: Long;
  11.               tc_TrapAlloc, tc_TrapAble: Word;
  12.               tc_ExceptData, tc_ExceptCode, tc_TrapData: Ptr;
  13.               tc_TrapCode, tc_SPReg, tc_SPLower, tc_SPUpper: Ptr;
  14.               tc_Switch, tc_Launch: Ptr;  { VOID }
  15.               tc_MemEntry: List;
  16.               tc_UserData: Ptr;
  17.             end;
  18. CONST TB_PROCTIME = 0;
  19.       TB_STACKCHK = 4;
  20.       TB_EXCEPT = 5;
  21.       TB_SWITCH = 6;
  22.       TB_LAUNCH = 7;
  23.       TF_PROCTIME = $1;
  24.       TF_STACKCHK = $10;
  25.       TF_EXCEPT = $20;
  26.       TF_SWITCH = $40;
  27.       TF_LAUNCH = $80;
  28.       TS_INVALID = 0;
  29.       TS_ADDED = 1;
  30.       TS_RUN = 2;
  31.       TS_READY = 3;
  32.       TS_WAIT = 4;
  33.       TS_EXCEPT = 5;
  34.       TS_REMOVED = 6;
  35.       SIGB_ABORT = 0;
  36.       SIGB_CHILD = 1;
  37.       SIGB_BLIT = 4;
  38.       SIGB_SINGLE = 4;
  39.       SIGB_DOS = 8;
  40.       SIGF_ABORT = $1;
  41.       SIGF_CHILD = $2;
  42.       SIGF_BLIT = $10;
  43.       SIGF_SINGLE = $10;
  44.       SIGF_DOS = $100;
  45. {$endif}
  46. {$ifndef EXEC_TASKS_LIB}
  47. CONST EXEC_TASKS_LIB = 0;
  48. Library SysBase:
  49. -120: Procedure Disable;
  50. -126: Procedure Enable;
  51. -132: Procedure Forbid;
  52. -138: Procedure Permit;
  53. -282: Procedure AddTask(a1: p_Task; a2,a3: Long);
  54. -288: Procedure RemTask(a1: p_Task);
  55. -294: Function Findtask(a1: stryng): p_Task;
  56. -300: Function SetTaskPri(a1: p_Task; d0: Short): Short;
  57. -306: Function SetSignals(d0,d1: Long): Long;
  58. -318: Function _Wait(d0: Long): Long;
  59. -324: Procedure Signal(a1: p_Task; d0: Long);
  60. -330: Function AllocSignal(d0: integer): integer;
  61. -336: Procedure FreeSignal(d0: integer)
  62. end;
  63. {$endif}
  64.