summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2010-02-16 09:56:13 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2010-02-16 09:56:13 (GMT)
commite55a5e173877a20586245eac2080ba9c6fa4de0a (patch)
treefe3c33342e7eb3e05c44389a0ea8aebf4e1fd296 /tests
parentf3a47f0fe6e9f63c030e6e89f1258d4faf2025cd (diff)
downloadQt-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