diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-02-16 09:56:13 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-02-16 09:56:13 (GMT) |
commit | e55a5e173877a20586245eac2080ba9c6fa4de0a (patch) | |
tree | fe3c33342e7eb3e05c44389a0ea8aebf4e1fd296 /tests | |
parent | f3a47f0fe6e9f63c030e6e89f1258d4faf2025cd (diff) | |
download | Qt-e55a5e173877a20586245eac2080ba9c6fa4de0a.zip Qt-e55a5e173877a20586245eac2080ba9c6fa4de0a.tar.gz Qt-e55a5e173877a20586245eac2080ba9c6fa4de0a.tar.bz2 |
Fix a deadlock in kqueue implementation of QFileSystemWatcher
When adding and removing lots of files, the kqueue implementation's
pipe between the worker thread and the main interface would fill up,
causing the thread adding/removing files to block even though the
worker thread was no longer running.
The kqueue interface gives us information about how much data is
available on the pipe (the data member of the kevent struct), so we
should use this to make sure we always empty the pipe. We then iterate
over all the command bytes and make sure we interpret them correctly.
Reviewed-by: Prasanth Ullattil
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions