Skip to content
Commit 83d15a5a authored by Harald Sitter's avatar Harald Sitter 🐧
Browse files

work around bug in QThreadPool::tryStart(std::function)

the underlying code doesn't correctly set up ref counting before passing
the internally created runnable to QThreadPoolPrivate. this later
results in failed assertions about the ref counting.

instead create a qrunnable of our function so we can use
tryStart(QRunnable) which has correct ref counting code.

this prevents crashing when used with full on debug builds of Qt

BUG: 449688
parent dc1bfb19
Pipeline #295395 passed with stage
in 6 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