[racket] Rosetta: Atomic updates task

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Sat Jun 15 21:31:06 EDT 2013

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.prager at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130615/9051b696/attachment.html>

Posted on the users mailing list.