<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 11, 2011, at 2:11 37PM, Igor Stasenko wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On 11 August 2011 13:17, Nicolas Cellier<br>&lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>&gt; wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">I would properly comment the places where this "ATOMIC" operation is<br></blockquote><blockquote type="cite">really used.<br></blockquote><br>Like in<br>AtomicQueueItem&gt;&gt;makeCircular? :)<br><br><br>I also remember discussion that some precautions in code to not insert<br>suspension point(s) in ProcessorScheduler/Process/or Semaphore..<br>but i forgot which one exactly.<br>Is it LinkedList&gt;&gt;removeLink:?</div></blockquote><br></div><div><a href="http://code.google.com/p/pharo/issues/detail?id=3498">http://code.google.com/p/pharo/issues/detail?id=3498</a></div><div><br></div><div>So suspension points in remove:ifAbsent&nbsp;(as written now) &nbsp;and removeLink: are ok.</div><div>Not in removeLink:ifAbsent: though.</div><div><br></div><div>Used to be:</div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>link := self linkOf: aLinkOrObject ifAbsent: [^aBlock value].</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>self removeLink: link.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>^aLinkOrObject</div><div><br></div><div>Because, well, I didn't think you'd ever get in a situation where :</div><div>1) two processes would try to remove the same link</div><div>2) &nbsp;first of them suspends after link assignment</div><div>3) second carries through, and actually removes link</div><div>4) first calls removeLink: , and default block raising error is triggered when link is not found.</div><div><br></div><div>Cheers,</div><div>Henry</div></div></body></html>