<div dir="ltr"><div><div>Awesome thanks, thought what I did there was dodgy. It was really weird when this() started multiple schedulers at least now I see the obvious reason.<br><br></div>BTW: gist is at: <a href="https://gist.github.com/rjmcguire/6336931">https://gist.github.com/rjmcguire/6336931</a><br>
<br></div>Could someone point me at the correct linked list to use inside the channel. I'd prefer to use a range container of some kind if it exists in the std lib. I tried SList and had a bad experience hence the custom implementation.<br>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 26, 2013 at 1:21 AM, Timon Gehr <span dir="ltr"><<a href="mailto:timon.gehr@gmx.ch" target="_blank">timon.gehr@gmx.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 08/26/2013 12:55 AM, Rory McGuire wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
shared chan!Fiber scheduler; // channel contains Fibers waiting for<br>
their time slice<br>
static this () {<br>
     if (scheduler is null) {<br>
</blockquote>
<br>
<br></div>
You want 'shared static this' instead to avoid a race condition.<br>
</blockquote></div><br></div>