Playing around with the bad msleep()... This definitely needs more
investigation and a proper fix. svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=954968
This commit is contained in:
parent
9bda1ce0e4
commit
0bbf53b534
|
@ -77,11 +77,10 @@ void OperationRunner::run()
|
||||||
|
|
||||||
suspendMutex().unlock();
|
suspendMutex().unlock();
|
||||||
|
|
||||||
/** @todo Sleep a little to give others a chance to suspend us.
|
// Sleep a little to give others a chance to suspend us. This should normally not be
|
||||||
ProgressDialog::slotButtonClicked() blocks if we don't sleep here... Why?
|
// required -- is it possible that the compiler just optimizes our unlock/lock away
|
||||||
It should block until we unlock above, but it blocks until run() ends...
|
// if we don't sleep?
|
||||||
*/
|
msleep(5);
|
||||||
msleep(100);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!status)
|
if (!status)
|
||||||
|
|
Loading…
Reference in New Issue