(C) 1998 AROS - The Amiga Research OS


NAME

ULONG Procure (sigSem , bidMsg)

LOCATION
In SysBase at offset 90

SYNOPSIS
struct SignalSemaphore * sigSem
struct SemaphoreMessage * bidMsg

FUNCTION
Tries to get a lock on a semaphore in an asynchronous manner. If the semaphore is not free this function will not wait but just post a request to the semaphore. As soon as the semaphore is available the bidMsg will return and make you owner of the semaphore.

INPUTS
sigSem
pointer to semaphore structure
bidMsg
pointer to a struct SemaphoreMessage. This should lie in public or at least shared memory.

RESULT
Principly none. Don't know. Just ignore it.

EXAMPLE

SEE ALSO
Vacate()

NOTES
Locks obtained with Procure() must be released with Vacate().

BUGS

INTERNALS

HISTORY