can't understand why code do not working

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 22 12:40:20 PDT 2014


On 09/22/2014 12:36 PM, Suliman wrote:

> void worker()
> {
>      int value = 0;
>      value = receiveOnly!int();
>      writeln(value);
>      int result = value * 3;
>      ownerTid.send(result);
> }

Your worker terminates after receiving one int and sending one response. 
It should be waiting in a loop.

Ali



More information about the Digitalmars-d-learn mailing list