Re:Semaphores are surprisingly versatile
by jeffbush on Monday March 16, 2015 @09:29PM
(#9215742)
I think it's actually pretty easy to implement a mutex with a semaphore. The opposite not so much. If you want extra debug checking, you can wrap the semaphore with another construct that sets the owner field on lock and checks it on unlock.
[ Parent
| on HN ]
There are no comments on this comment yet.