aka-mj/go-semaphore

enhancement: TimedWait should do a blocking wait

pvbouwel opened this issue · 1 comments

Nice library and seems to be close to what I need so thanks for opensourcing this.

Is there and particular reason the times wait doesn't use sem_timedwait? It seems the semantics of sem_timedwait are more interesting since and availability of the semaphore would be Picked up. With your golang implementation you try, wait and then try again but that means it is Lively you wait unnecessarily.

Let me know if you are interested in contributions. It would looks something along the lines of pvbouwel@939bc6d