![[Contents]](../images/toc_d.gif) 
 ![[Index]](../images/index_d.gif) 
 ![[Help]](../images/help_d.gif) 
 ![[Retrace]](../images/retrace_d.gif) 
 ![[browse <]](../images/prev.gif) 
 ![[Browse >]](../images/next.gif) 
NAME
    AttemptSemaphore -- try to obtain without blocking
SYNOPSIS
    success = AttemptSemaphore(signalSemaphore)
    D0                         A0
    LONG AttemptSemaphore(struct signalsemaphore *);
FUNCTION
    This call is similar to obtainsemaphore(), except that it will not
    block if the semaphore could not be locked.
INPUT
   signalSemaphore -- an initialized signal semaphore structure
RESULT
    success -- TRUE if the semaphore was locked, false if some
        other task already possessed the semaphore.
NOTE
    This call does NOT preserve registers.
SEE ALSO
    obtainsemaphore() obtainsemaphoreshared(), releasesemaphore(),
    exec/semaphores.h