Docs » Autodocs » exec.library » AttemptSemaphore
AttemptSemaphore -- try to obtain without blocking
success = AttemptSemaphore(signalSemaphore) D0 A0 LONG AttemptSemaphore(struct SignalSemaphore *);
This call is similar to ObtainSemaphore(), except that it will not block if the semaphore could not be locked.
signalSemaphore -- an initialized signal semaphore structure
success -- TRUE if the semaphore was locked, false if some other task already possessed the semaphore.
This call does NOT preserve registers.
ObtainSemaphore(), ObtainSemaphoreShared(), ReleaseSemaphore(), <exec/semaphores.h>
|