home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff339.lzh / PCQ / Include / Semaphores.i < prev    next >
Text File  |  1990-03-19  |  525b  |  30 lines

  1. {
  2.     Semaphores.i
  3. }
  4.  
  5. {$I "Include/Ports.i"}
  6.  
  7. Type
  8.     Semaphore = Record
  9.     sm_MsgPort    : MsgPort;
  10.     sm_Bids        : Short;
  11.     end;
  12.  
  13. { this is the structure used to request a signal semaphore }
  14.  
  15.     SemaphoreRequest = record
  16.     sr_Link : MinNode;
  17.     sr_Waiter : Address; { A Task Pointer }
  18.     end;
  19.  
  20. { this is the actual semaphore itself }
  21.  
  22.     SignalSemaphore = Record
  23.     ss_Link        : Node;
  24.     ss_NestCount    : Short;
  25.     ss_WaitQueue    : MinList;
  26.     ss_MultipleLink    : SemaphoreRequest;
  27.     ss_Owner    : Address; { TaskPtr }
  28.     ss_QueueCount    : Short;
  29.     end;
  30.