302
K
A
DAK
AMX 86 Procedures
ajsmdel ajsmdel
Purpose Delete a Semaphore
Used by n Task o IS P o Timer Procedure n Restart Procedure n Exit Procedure
Setup AMXID semid;
int status;
.
.
status = ajsmdel(semid);
AX BX
Where semid is the semaphore id of a resource or 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
AERSIU = Semaphore is in use
One or more tasks may be waiting on the semaphore.
Restriction You must be absolutely certain that no other task, ISP or Timer Procedure
is in any way using or about to use the semaphore. Failure to observe this
restriction may lead to unexpected and unpredictable faults.
See Also ajsmcre