Recursiveness of Mutex is needed only for MDX video support, but slows everything down
b10cdf685c8c02d2be2f1ae4f1e03a4e02db48d8 made Mutex class widely used in GoldenDict code a recursive mutex. Apparently only the MDX video feature implemented in that commit requires the recursiveness. Can the MDX-video code be refactored to not require this and Mutex become non-recursive again?
From https://doc.qt.io/qt-5/qmutex.html#QMutex-1:
Recursive mutexes are slower and take more memory than non-recursive ones.
@nonwill wrote in a comment to that commit:
If the file is large enough, the caching would block query process for a while. A slightly better solution would be to create a new thread or runnable to do the caching work and just return the cache path here, and the Mutex would not need the Recursive flag then.
Source: goldendict/goldendict