Worker is not finished while sending message to intermediate worker

2015-02-09 Thread xtreak via Digitalmars-d-learn
, // params[2] - main function tid } I got the answer from stackoverflow @ https://stackoverflow.com/questions/28128383/worker-is-not-finished-while-sending-message-to-intermediate-worker. But the person who answered my question asked me to post back to dlang learn to learn more about it. As I

Re: Worker is not finished while sending message to intermediate worker

2015-02-09 Thread Ali Çehreli via Digitalmars-d-learn
On 02/09/2015 11:46 AM, Ali Çehreli wrote: threads normally start one [or] more worker threads and send tasks to those threads Accordingly, the following program uses just three threads: import std.stdio; import std.concurrency; import std.conv; import core.thread; struct Terminate {} void

Re: Worker is not finished while sending message to intermediate worker

2015-02-09 Thread xtreak via Digitalmars-d-learn
On Monday, 9 February 2015 at 20:11:09 UTC, Ali Çehreli wrote: On 02/09/2015 11:46 AM, Ali Çehreli wrote: threads normally start one [or] more worker threads and send tasks to those threads Accordingly, the following program uses just three threads: import std.stdio; import std.concurrency;

Re: Worker is not finished while sending message to intermediate worker

2015-02-09 Thread Ali Çehreli via Digitalmars-d-learn
On 02/09/2015 12:34 PM, xtreak wrote: I want the stringConverter to send a message to square which in turn messages the main function with string hello. Your code did almost that but there was a bug (which I've pointed out). So are you saying that message is not delivered to square from

Re: Worker is not finished while sending message to intermediate worker

2015-02-09 Thread Ali Çehreli via Digitalmars-d-learn
], stringified); // params[0] - square function tid, // params[2] - main function tid } I got the answer from stackoverflow @ https://stackoverflow.com/questions/28128383/worker-is-not-finished-while-sending-message-to-intermediate-worker. But the person who answered my question asked me to post back