home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
bbs
/
cbm
/
nduk-v39.lha
/
V39
/
include
/
exec
/
semaphores.i
< prev
next >
Wrap
Text File
|
1992-09-24
|
2KB
|
69 lines
IFND EXEC_SEMAPHORES_I
EXEC_SEMAPHORES_I SET 1
**
** $VER: semaphores.i 39.1 (07.02.92)
** Includes Release 39.108
**
** Definitions for locking functions.
**
** (C) Copyright 1986-1992 Commodore-Amiga, Inc.
** All Rights Reserved
**
IFND EXEC_NODES_I
INCLUDE "exec/nodes.i"
ENDC ; EXEC_NODES_I
IFND EXEC_LISTS_I
INCLUDE "exec/lists.i"
ENDC ; EXEC_LISTS_I
IFND EXEC_PORTS_I
INCLUDE "exec/ports.i"
ENDC ; EXEC_PORTS_I
*----------------------------------------------------------------
*
* Signal Semaphore Structure
*
*----------------------------------------------------------------
** Private structure used by ObtainSemaphore()
STRUCTURE SSR,MLN_SIZE
APTR SSR_WAITER
LABEL SSR_SIZE
** Signal Semaphore data structure
STRUCTURE SS,LN_SIZE
WORD SS_NESTCOUNT
STRUCT SS_WAITQUEUE,MLH_SIZE
STRUCT SS_MULTIPLELINK,SSR_SIZE
APTR SS_OWNER
WORD SS_QUEUECOUNT
LABEL SS_SIZE
** Semaphore procure message (for use in V39 Procure/Vacate ****/
STRUCTURE SemaphoreMessage,MN_SIZE
APTR SSM_SEMAPHORE
LABEL SSM_SIZEOF
*----------------------------------------------------------------
*
* Semaphore Structure (Old Procure/Vacate type, not reliable)
*
*----------------------------------------------------------------
STRUCTURE SM,MP_SIZE ; Do not use these semaphores!
WORD SM_BIDS ; number of bids for lock
LABEL SM_SIZE
*------ unions:
SM_LOCKMSG EQU MP_SIGTASK
ENDC ; EXEC_SEMAPHORES_I