We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
void AsyncTestTask::startAsyncTask() { _timer.start(); QThread::sleep(2); _timer.stop(); emit finished(id()); }
代码阻塞在AsyncTaskQueue::finishTask 函数。可能是QMutexLocker造成的阻塞。
AsyncTestTask::timeout() 内的_timer.stop(); emit finished(id());却可以正常执行。不会阻塞进程。
感觉很奇怪,不太好理解。 不知道作者还来不来看不看这里了,如果方便请帮忙解答一下。谢谢!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
代码阻塞在AsyncTaskQueue::finishTask 函数。可能是QMutexLocker造成的阻塞。
AsyncTestTask::timeout() 内的_timer.stop(); emit finished(id());却可以正常执行。不会阻塞进程。
感觉很奇怪,不太好理解。
不知道作者还来不来看不看这里了,如果方便请帮忙解答一下。谢谢!
The text was updated successfully, but these errors were encountered: