Re: Thread termination conditions in dmd 2.064.2

2013-11-07 Thread Sönke Ludwig
Am 07.11.2013 11:28, schrieb Atila Neves: Looking like a bug I think. Changed the code to this and it crashes again: import std.concurrency; private void threadWriter() { for(bool running = true; running;) { receive( (Tid i) { }, (OwnerTermin

Re: Thread termination conditions in dmd 2.064.2

2013-11-07 Thread Atila Neves
Looking like a bug I think. Changed the code to this and it crashes again: import std.concurrency; private void threadWriter() { for(bool running = true; running;) { receive( (Tid i) { }, (OwnerTerminated trm) { running = false;

Thread termination conditions in dmd 2.064.2

2013-11-07 Thread Atila Neves
I had code that worked in 2.063 that crashes now (on Linux, on Windows it still works). I suspect I was doing something stupid and got lucky, but I'm posting here to make sure. Code: import std.concurrency; private void func() { auto done = false; while(!done) { receive(