Arc Forumnew | comments | leaders | submitlogin
6 points by CatDancer 5658 days ago | link | parent

atomic stops being atomic if an exception is thrown inside its body:

  (errsafe (atomic (/ 1 0)))

  (= x 0)

  (thread
    (atomic
     (= x 1)
     (sleep .5)
     (= x 2)))

  (atomic:repeat 5
    (prn x)
    (sleep .2))
  0
  1
  1
  2
  2
  nil
a patch is available at http://catdancer.github.com/atomic-fix.html


1 point by pg 5644 days ago | link

Thanks, Rtm used your patch.

-----