Call this function before using the semaphore.
You can skip calling open if the semaphore is constructed explicitly
maximal value the semaphore can grow to.
initial number of obtained locks. Default of zero means that the semaphore is currently unused.
See Implementation
Call this function before using the semaphore.
You can skip calling open if the semaphore is constructed explicitly