Name
hw_LockSemaphore -- lock a semaphore (V6.0)
Synopsis
void hw_LockSemaphore(APTR sem);
Function
This function attempts to lock the specified semaphore handle. If another thread has already locked the semaphore, hw_LockSemaphore() will wait until that thread releases the semaphore again.

Note that hw_LockSemaphore() contains a nesting count. Every call to hw_LockSemaphore() must be matched by a call to hw_UnLockSemaphore().

Designer compatibility
Unsupported

Inputs
sem
semaphore handle allocated by hw_AllocSemaphore()

Show TOC