On 9/4/2018 11:46 AM, George Neuner wrote:

AFAIK there is no way to simply 'check' if the semaphore is available.


I was wrong - there is a way using events: semaphore-peek-evt  can check whether a semaphore is ready without affecting its counter.

https://docs.racket-lang.org/reference/semaphore.html?q=semaphore-peek#%28def._%28%28quote._~23~25kernel%29._semaphore-peek-evt%29%29


George

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to