<br><br><div class="gmail_quote">2008/4/28 Stefan Blixt &lt;<a href="mailto:stefan.blixt@gmail.com">stefan.blixt@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yeah, but note that there are two shreds running this loop in parallell. So if one event on each port arrive at the same time, chances are that the first yield will hand over execution to the second shred, that in turn overwrites b.value and b.message. </blockquote>
<div><br>Ow, right, yes, oops, that would be a issue indeed because the OSC event will be higher on the &quot;list of things to wait for&quot; (I still think we should yield there, BTW, as that&#39;s at least one part of the issue).<br>
<br>Erm..... that makes it quite hard indeed. I was thinking about a &quot;has_been_parsed&quot; flag in the event that&#39;s set to &quot;1&quot; at sending it and &quot;0&quot; when receiving it, then have the OSC shreds yield while this is true but they&#39;d probably keep yiedling to eachother and maybe even get the VM stuck. I&#39;m not a 100% sure there, I don&#39;t think the way that part of the concurency works is documented at all. <br>
<br>That could really stand some documenting.<br></div></div>Erm.... Ge?<br><br>Yours,<br>Kas.<br>