You might find the 'box-cas!' procedure useful for this -- it performs an atomic update on a single box.
Sam On Jun 15, 2013 9:16 PM, "Daniel Prager" <daniel.a.pra...@gmail.com> wrote: > I've added my Racket solution to the Atomic Updates task. See > > http://rosettacode.org/wiki/Atomic_updates > > I'd be interested in suggestions on how to improve this solution, > especially by drawing on existing facilities in Racket to construct a more > elegant approach (or approaches) than the hand-rolled locks that I employed. > > -- Dan > > ____________________ > Racket Users list: > http://lists.racket-lang.org/users > >
____________________ Racket Users list: http://lists.racket-lang.org/users