DosSemSetWait

Bindings: C, MASM

This call sets a semaphore if the semaphore is not already set and waits until another thread clears the semaphore with a DosSemClear call.