[plt-scheme] semaphore-value

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Wed Jul 25 10:47:11 EDT 2007

You can build your own on top of `semaphore-try-wait?'.

Chongkai

Jos Koot wrote:
> Hi
> A question: Is there a reason for not providing a procedure 
> like (semaphore-count sema) --> current value of the semaphore 
> counter? It seems rather easy to implement, but I rather like not to 
> poke in MzScheme's C code (sema.c). Of course the returned value may 
> be outdated by the time it is returned, but that's no problem.
> Greetings, Jos Koot.



Posted on the users mailing list.