On Wed, Jan 7, 2009 at 11:21 AM, Rich Hickey <[email protected]> wrote:
>
> On Jan 7, 12:11 pm, "Mark Volkmann" <[email protected]> wrote:
>> What is it that triggers the function passed to swap! to be retried?
>> Is it that some other thread has modified the atom since swap! was
>> invoked, but before the function passed to swap! returns?
>>
>> --
>
> I think that's described pretty well here:
>
> http://clojure.org/atoms

Right. Somehow I had skipped over this part:

"Since another thread may have changed the value in the intervening
time, it may have to retry, and does so in a spin loop."

Thanks!

-- 
R. Mark Volkmann
Object Computing, Inc.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to