Docs » Autodocs » exec.library » FindSemaphore
FindSemaphore -- find a given system signal semaphore
signalSemaphore = FindSemaphore(name) D0 A1 struct SignalSemaphore *FindSemaphore(STRPTR);
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.
name - name of the semaphore to find
semaphore - a pointer to the signal semaphore, or zero if not found.
|