forked from mirrors/gio-qt
fix: conditional variable never woke up.
This commit is contained in:
parent
1203a0f839
commit
a15ba2dc73
@ -246,7 +246,7 @@ QExplicitlySharedDataPointer<DGioFileInfo> DGioFile::createFileInfo(QString attr
|
|||||||
});
|
});
|
||||||
QMutex m;
|
QMutex m;
|
||||||
m.lock();
|
m.lock();
|
||||||
bool finished = cond.wait(&m, timeout_msec);
|
bool finished = gmmFileInfo || cond.wait(&m, timeout_msec);
|
||||||
m.unlock();
|
m.unlock();
|
||||||
if (finished && gmmFileInfo) {
|
if (finished && gmmFileInfo) {
|
||||||
QExplicitlySharedDataPointer<DGioFileInfo> fileInfoPtr(new DGioFileInfo(gmmFileInfo.release()));
|
QExplicitlySharedDataPointer<DGioFileInfo> fileInfoPtr(new DGioFileInfo(gmmFileInfo.release()));
|
||||||
|
Loading…
Reference in New Issue
Block a user