Assserts that the semaphore is available.
Merge pull request #4 from antoinealb/master

Assserts that the semaphore is available.