Determination of thread status.

Vitaly gkvetal at gmail.com
Tue Dec 25 14:44:43 UTC 2018


Hi all.
I can not understand how to track me that the thread has finished 
work.
eg:

import std.concurrency;
void myThread ()
{
// Do the work
}

void main ()
{
Tid thread = spawn (& myThread);
// It is necessary to check whether the thread has finished its 
work or is active.
}

Could you tell me how to do this?


More information about the Digitalmars-d-learn mailing list