Strange exception using threads

simendsjo simendsjo at gmail.com
Sat Jun 23 09:33:31 PDT 2012


On Sat, 23 Jun 2012 18:29:50 +0200, Ali Çehreli <acehreli at yahoo.com> wrote:

>         receive(
>             (Tid id, int i)
>             {
>                 writeln("Secondary thread: ", i);
>             },
>              (OwnerTerminated exc) // <----- as a message
>             {
>                 done = true;
>             }
>         );

Nice. I thought you had to send an explicit message.


More information about the Digitalmars-d-learn mailing list