308
K
A
DAK
AMX 86 Procedures
ajsmsig ajsmsig
Purpose Signal a Semaphore
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup AMXID semid;
int status;
.
.
status = ajsmsig(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
AERNME = Cannot signal the semaphore because no AMX message
envelopes are available for use
The semaphore will immediately be given to the task (if any) which is
waiting at the head of the semaphore wait queue. Task rescheduling
occurs immediately if necessary.
Restriction You must not attempt to signal a resource semaphore. Use ajsmfre or
ajsmrls for that purpose.
See Also ajsmwat