306
K
A
DAK
AMX 86 Procedures
ajsmrsv ajsmrsv
Purpose Reserve a Resource Semaphore
Used by n Task o IS P o Timer Procedure o Restart Procedure n Exit Procedure
Setup AMXID semid;
long timeout;
unsigned int priority;
int status;
.
.
status = ajsmrsv(semid, timeout, priority);
AX BX DX:CX DI
Where semid is the semaphore id of a resource semaphore acquired by a call to
ajsmcre.
timeout is the maximum interval measured in AMX system ticks which
the caller is prepared to wait for the resource. Timeout must be
positive. If timeout = 0, the caller will wait forever for the resource.
priority is the priority at which the caller wishes to wait (0 = highest).
To wait in FIFO order, have all callers use the same value for
priority.