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

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. MODULE 'exec/lists',
  5.        'exec/nodes',
  6.        'exec/ports',
  7.        '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.