home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / jËzyki_programowania / amigae / e_v3.2a / modulessrc / exec / tasks.e < prev    next >
Text File  |  1977-12-31  |  2KB  |  93 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. MODULE 'exec/lists',
  5.        'exec/nodes',
  6.        'exec/ports'
  7.  
  8. OBJECT tc
  9.   ln:ln
  10.   flags:CHAR
  11.   state:CHAR
  12.   idnestcnt:CHAR  -> This is signed
  13.   tdnestcnt:CHAR  -> This is signed
  14.   sigalloc:LONG
  15.   sigwait:LONG
  16.   sigrecvd:LONG
  17.   sigexcept:LONG
  18. -> a) next two INTS unioned "etask:PTR TO etask"
  19.   trapalloc:INT  -> This is unsigned
  20.   trapable:INT  -> This is unsigned
  21.   exceptdata:LONG
  22.   exceptcode:LONG
  23.   trapdata:LONG
  24.   trapcode:LONG
  25.   spreg:LONG
  26.   splower:LONG
  27.   spupper:LONG
  28.   switch:LONG
  29.   launch:LONG
  30.   mementry:lh
  31.   userdata:LONG
  32. ENDOBJECT     /* SIZEOF=92 */
  33.  
  34. OBJECT etask
  35.   mn:mn
  36.   parent:PTR TO tc
  37.   uniqueid:LONG
  38.   children:mlh
  39.   trapalloc:INT  -> This is unsigned
  40.   trapable:INT  -> This is unsigned
  41.   result1:LONG
  42.   result2:LONG
  43.   taskmsgport:mp
  44. ENDOBJECT     /* SIZEOF=86 */
  45.  
  46. CONST CHILD_NOTNEW=1,
  47.       CHILD_NOTFOUND=2,
  48.       CHILD_EXITED=3,
  49.       CHILD_ACTIVE=4
  50.  
  51. OBJECT stackswapstruct
  52.   lower:LONG
  53.   upper:LONG
  54.   pointer:LONG
  55. ENDOBJECT     /* SIZEOF=12 */
  56.  
  57. CONST TB_PROCTIME=0,
  58.       TB_ETASK=3,
  59.       TB_STACKCHK=4,
  60.       TB_EXCEPT=5,
  61.       TB_SWITCH=6,
  62.       TB_LAUNCH=7,
  63.       TF_PROCTIME=1,
  64.       TF_ETASK=8,
  65.       TF_STACKCHK=16,
  66.       TF_EXCEPT=$20,
  67.       TF_SWITCH=$40,
  68.       TF_LAUNCH=$80,
  69.       TS_INVALID=0,
  70.       TS_ADDED=1,
  71.       TS_RUN=2,
  72.       TS_READY=3,
  73.       TS_WAIT=4,
  74.       TS_EXCEPT=5,
  75.       TS_REMOVED=6,
  76.       SIGB_ABORT=0,
  77.       SIGB_CHILD=1,
  78.       SIGB_BLIT=4,
  79.       SIGB_SINGLE=4,
  80.       SIGB_INTUITION=5,
  81.       SIGB_NET=7,
  82.       SIGB_DOS=8,
  83.       SIGF_ABORT=1,
  84.       SIGF_CHILD=2,
  85.       SIGF_BLIT=16,
  86.       SIGF_SINGLE=16,
  87.       SIGF_INTUITION=$20,
  88.       SIGF_NET=$80,
  89.       SIGF_DOS=$100,
  90.       SYS_SIGALLOC=$FFFF,
  91.       SYS_TRAPALLOC=$8000
  92.  
  93.