Skip to content
Commit 37e985ba authored by Igor Kushnir's avatar Igor Kushnir
Browse files

FileManagerListJob: simplify waiting for worker thread

Wait for the QFuture returned by QtConcurrent::run() to finish instead
of custom QSemaphore locking.

Thread cancellation and waiting for finished in ~FileManagerListJob()
still works as expected. Tested it by inserting `QThread::sleep(5);`
right after the `const auto entries =` line in the worker thread lambda
and inserting several tracing lines like this:
    qCritical() << "destroying" << this << QTime::currentTime().second()
                << QTime::currentTime().msec();
parent ec306670
Pipeline #556539 passed with stage
in 19 minutes and 52 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment