Thanks, I will look into this. 

On Thursday, 6 September 2018 03:25:43 UTC+1, gneuner2 wrote:
>
>
> 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
>  
> <https://www.google.com/url?q=https%3A%2F%2Fdocs.racket-lang.org%2Freference%2Fsemaphore.html%3Fq%3Dsemaphore-peek%23%2528def._%2528%2528quote._~23~25kernel%2529._semaphore-peek-evt%2529%2529&sa=D&sntz=1&usg=AFQjCNFpBBWNaBXgFAvbz9FPg-f5k3tkEg>
>  
>
>
> 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