Determination of thread status.

Neia Neutuladh neia at ikeran.org
Tue Dec 25 17:08:00 UTC 2018


1. Find the Thread object:
  Tid threadId = spawn(&doStuff);
  auto thread = Thread.getAll.filter!(x => x.id == threadId).front;
2. Check the `isRunning` property.

The indirection with spawn() is awkward.


More information about the Digitalmars-d-learn mailing list