Closed BECATRUE closed 1 year ago
So far, when the thread is finished, we only quit it. However, the application is stopped so quickly, there is no enough time for bus thread to finish quit. And it cause the error: Destroyed while thread is still running.
Destroyed while thread is still running
Thus, I just called wait() after quit().
wait()
quit()
Please explain what wait() does or provide a link of documentation.
In addition, I don't want this PR changes README.md. Is this branch created from the new version of main branch?
main
So far, when the thread is finished, we only quit it. However, the application is stopped so quickly, there is no enough time for bus thread to finish quit. And it cause the error:
Destroyed while thread is still running
.Thus, I just called
wait()
afterquit()
.