Quantity semaphores in which each thread may wait for an arbitrary "amount".
General Quantity Semaphores
QSemN is a quantity semaphore, in which the available
"quantity" may be signalled or waited for in arbitrary amounts.
Build a new
QSemN with a supplied initial quantity.
The initial quantity must be at least 0.