Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 724 Bytes

FindSemaphore.md

File metadata and controls

31 lines (20 loc) · 724 Bytes

NAME

FindSemaphore -- find a given system signal semaphore

SYNOPSIS

    signalSemaphore = FindSemaphore(name)
    D0                              A1

    struct SignalSemaphore *FindSemaphore(STRPTR);

Links: SignalSemaphore

FUNCTION

This function will search the system signal semaphore list for a semaphore with the given name. The first semaphore matching this name will be returned.

This function does not arbitrate for access to the semaphore list, surround the call with a Forbid()/Permit() pair.

INPUT name - name of the semaphore to find

RESULT semaphore - a pointer to the signal semaphore, or zero if not found.