Determination of thread status.

Brakeran none at none.nl
Sun Dec 30 08:24:20 UTC 2018


On Thursday, 27 December 2018 at 06:22:31 UTC, Vitaly wrote:
>> Maybe use spawnLinked()? https://run.dlang.io/is/9xbyAF
> Thanks.
> At the moment, I implemented it through sending a message, and 
> receiveTimeout receiving, if the response is not received after 
> the timeout expires, then it is considered that the  has 
> terminated. Probably this is not right, but I will try other 
> options.

You could use (core.thread) register() the Tid and then locate() 
it, if return is 0 then the thread was done. else it is still 
alive doing something.



More information about the Digitalmars-d-learn mailing list