Skip to content
Commit ba07cf34 authored by Alexander Lohnau's avatar Alexander Lohnau
Browse files

Make KDirListerCache thread local

The PlacesRunner uses this model, but instantiating it in the runners
thread causes a crash, because the cache lived in a different thread.

This can be solved my making the cache thread-local and thus the runner
thread has its own cache.

According to https://doc.qt.io/qt-6.2/qthreadstorage.html#localData, a
new value will be created when we don't have a thread-local instance.
This means we do not need to check if the value is present or not and
also don't need to explicitly store a pointer.
parent 8de75d3c
Pipeline #446886 passed with stage
in 30 minutes and 58 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