Re: [racket-dev] scheme_sema_post_all

2011-10-22 Thread Tony Garnock-Jones
On 2011-10-22 9:41 AM, Tony Garnock-Jones wrote: > (Context: I want to build a kind of box that starts empty, is able to be > given a value exactly once, and that threads can wait on until its value > is set by some other thread. Currently I'm using a channel and a > newly-spun-up thread that loops

[racket-dev] scheme_sema_post_all

2011-10-22 Thread Tony Garnock-Jones
Hi all, It looks like scheme_sema_post_all has the effect of an infinite number of scheme_sema_post calls. Is that right? If so, that's exactly what I need: would it make sense to expose the functionality, perhaps as (semaphore-post-infinite) or (semaphore-post-all)? (Context: I want to build a k