Thread termination conditions in dmd 2.064.2

Atila Neves atila.neves at gmail.com
Thu Nov 7 02:28:39 PST 2013


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;
             }
         );
     }
}

void main() {
     spawn(&threadWriter);
}


This is on Arch Linux 64-bit with the latest package BTW (updated 
this morning).


More information about the Digitalmars-d-learn mailing list