add semaphore.check
Merge pull request #8 from ostinelli/semaphore

Add semaphore.check