304
K
A
DAK
AMX 86 Procedures
ajsmget ajsmget
Purpose Get Use of a Semaphore (no wait)
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup AMXID semid;
int status;
.
.
status = ajsmget(semid);
AX BX
Where semid is the semaphore id of a counting semaphore acquired by a call to
ajsmcre.
Results Interrupts are disabled and then restored to their state at the time of the
call.
Status is returned.
AEROK = Call successful
AERNSS = Invalid semaphore id
AERSBY = Semaphore already in use
Use of the semaphore is not granted to caller.
Note This procedure returns immediately with an error indication if the
semaphore is in use. Tasks can wait for the use of the semaphore by
calling ajsmwat.
Restriction You must not attempt to get the use of a resource semaphore. Use
ajsmrsv for that purpose.
See Also ajsmwat, ajsmsig