|author||David Faure <firstname.lastname@example.org>||2014-09-04 16:29:25 +0200|
|committer||David Faure <email@example.com>||2014-09-11 00:17:33 +0200|
QLockFile: on Windows, retry deleting the lock file if it is being read.
A "sharing violation" happens when trying to delete the lock file and another thread/process is reading it at that very moment. Detect the error and try again, up to 10000 times - to avoid an infinite loop if QFile::remove fails for another reason such as a sudden change of permissions preventing us from deleting our own lock file. On Unix the deletion can't fail because of readers, but it doesn't hurt to check the return value there too, to catch other reasons for failures such as a sudden permission change. Task-number: QTBUG-38853 Change-Id: Icf12a74faed4a4916e3427abc09d9c33aa141476 Reviewed-by: Thiago Macieira <firstname.lastname@example.org>
Diffstat (limited to 'doc/global')
0 files changed, 0 insertions, 0 deletions