The iThread is still running for a little bit after de::Thread is considered complete, so use a separate flag to indicate completion for de::Thread. Another thread can be waiting on the de::Thread and checks the state immediately when the de::Thread sends out a signal.
libcore: Checking if a thread is finished
The iThread is still running for a little bit after de::Thread is considered complete, so use a separate flag to indicate completion for de::Thread. Another thread can be waiting on the de::Thread and checks the state immediately when the de::Thread sends out a signal.