<p dir="ltr">You might find the 'box-cas!' procedure useful for this -- it performs an atomic update on a single box.</p>
<p dir="ltr">Sam</p>
<div class="gmail_quote">On Jun 15, 2013 9:16 PM, "Daniel Prager" <<a href="mailto:daniel.a.prager@gmail.com">daniel.a.prager@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I've added my Racket solution to the Atomic Updates task. See<div><br></div><div> <a href="http://rosettacode.org/wiki/Atomic_updates" target="_blank">http://rosettacode.org/wiki/Atomic_updates</a><br>
</div><div><br>
</div><div>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.</div>
<div><br></div><div>-- Dan</div></div>
<br>____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div>