home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v1.2 / amidev_cd_12.iso / inc&ad2.0 / includes / exec / semaphores.i < prev    next >
Text File  |  1992-09-01  |  1KB  |  66 lines

  1.     IFND    EXEC_SEMAPHORES_I
  2. EXEC_SEMAPHORES_I    SET    1
  3. **
  4. **    $Filename: exec/semaphores.i $
  5. **    $Release: 2.04 Includes, V37.4 $
  6. **    $Revision: 36.6 $
  7. **    $Date: 90/05/10 $
  8. **
  9. **    Definitions for locking functions.
  10. **
  11. **    (C) Copyright 1986-1991 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. **
  14.  
  15.     IFND EXEC_NODES_I
  16.     INCLUDE "exec/nodes.i"
  17.     ENDC    ; EXEC_NODES_I
  18.  
  19.     IFND EXEC_LISTS_I
  20.     INCLUDE "exec/lists.i"
  21.     ENDC    ; EXEC_LISTS_I
  22.  
  23.     IFND EXEC_PORTS_I
  24.     INCLUDE "exec/ports.i"
  25.     ENDC    ; EXEC_PORTS_I
  26.  
  27.  
  28. *----------------------------------------------------------------
  29. *
  30. *   Signal Semaphore Structure
  31. *
  32. *----------------------------------------------------------------
  33.  
  34. ** Private structure used by ObtainSemaphore()
  35.  STRUCTURE  SSR,MLN_SIZE
  36.     APTR    SSR_WAITER
  37.     LABEL   SSR_SIZE
  38.  
  39. ** Signal Semaphore data structure
  40.  STRUCTURE  SS,LN_SIZE
  41.     WORD    SS_NESTCOUNT
  42.     STRUCT  SS_WAITQUEUE,MLH_SIZE
  43.     STRUCT  SS_MULTIPLELINK,SSR_SIZE
  44.     APTR    SS_OWNER
  45.     WORD    SS_QUEUECOUNT
  46.     LABEL   SS_SIZE
  47.  
  48.  
  49. *----------------------------------------------------------------
  50. *
  51. *   Semaphore Structure (Procure/Vacate type)
  52. *
  53. *----------------------------------------------------------------
  54.  
  55.  
  56.  STRUCTURE  SM,MP_SIZE
  57.     WORD    SM_BIDS          ; number of bids for lock
  58.     LABEL   SM_SIZE
  59.  
  60. *------ unions:
  61.  
  62. SM_LOCKMSG    EQU  MP_SIGTASK
  63.  
  64.  
  65.     ENDC    ; EXEC_SEMAPHORES_I
  66.