home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 19 / AACD19.BIN / AACD / Programming / YAEC / modules / exec / semaphores.e < prev    next >
Encoding:
Text File  |  2001-02-23  |  518 b   |  38 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. MODULE 'exec/lists'
  5. MODULE 'exec/nodes'
  6. MODULE 'exec/ports'
  7. MODULE 'exec/tasks'
  8.  
  9. OBJECT ssr
  10.   mln:mln
  11.   waiter:PTR TO tc
  12. ENDOBJECT     /* SIZEOF=12 */
  13.  
  14. OBJECT ss
  15.   ln:ln
  16.   nestcount:INT
  17.   waitqueue:mlh
  18.   multiplelink:ssr
  19.   owner:PTR TO tc
  20.   queuecount:INT
  21. ENDOBJECT     /* SIZEOF=46 */
  22.  
  23. OBJECT semaphoremessage
  24.   mn:mn
  25.   semaphore:PTR TO ss
  26. ENDOBJECT     /* SIZEOF=24 */
  27.  
  28. OBJECT sm
  29.   mp:mp
  30.   bids:INT
  31. ENDOBJECT     /* SIZEOF=36 */
  32.  
  33. CONST SM_LOCKMSG=16,
  34.       SM_SHARED=1,
  35.       SM_EXCLUSIVE=0
  36.  
  37.  
  38.