Fix potential deadlock in QAbstractFileEngine
commitfa854a8ed0eaefa3a65c6b3b66e98ba5bdc6d6c2
authorJoão Abecasis <joao@abecasis.name>
Wed, 22 Jul 2009 18:06:37 +0000 (22 20:06 +0200)
committerJoão Abecasis <joao@abecasis.name>
Wed, 22 Jul 2009 18:25:52 +0000 (22 20:25 +0200)
tree8a4301370a57283203d8e4a10805ebf25e859f3a
parent5796404298446038878da065c32429a0e31e9506
Fix potential deadlock in QAbstractFileEngine

There's a possibility for deadlocking with user code in
QAbstractFileEngine. Changing the QMutex there to a QReadWriteLock
should reduce the possibilities for this happening.

Also reduced the scope of the lock in QAbstractFileEngine.

Reviewed-by: Thiago Macieira
src/corelib/io/qabstractfileengine.cpp