<div class="gmail_quote">On Fri, Jan 13, 2012 at 10:04 AM, Rob Stewart <span dir="ltr">&lt;<a href="mailto:robstewart57@googlemail.com">robstewart57@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The question is a simple one. Must all operations on a TVar happen<br>
within *the same* atomically block, or am I am I guaranteed thread<br>
safety if, say, I have a number of atomically blocks in an IO<br>
function.<br></blockquote><div><br></div><div>If you want successive operations to see a consistent state, they must occur in the same atomically block. </div></div><br>