Name
hw_AllocSemaphore -- allocate a semaphore (V6.0)
Synopsis
APTR handle = hw_AllocSemaphore(void);
Function
This function allocates and initializes a semaphore that can be used to protect certain data structures from access by multiple threads. Another name for semaphore is critical section (Windows) or mutex (POSIX).

Designer compatibility
Unsupported

Inputs
none

Results
handle
a semaphore handle or NULL on error

Show TOC