Review Request: Make KDirWatch inotify threaded.
Michael Pyne
mpyne at kde.org
Sat Oct 24 21:31:22 BST 2009
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/1963/#review2799
-----------------------------------------------------------
/trunk/KDE/kdelibs/kio/kio/kdirwatch.cpp
<http://reviewboard.kde.org/r/1963/#comment2160>
Was this not necessary anywhere? I'd still set the close-on-exec flag even if it's a bad idea to using forking in a multi-threaded program (although I'd set this flag from the thread using inotify instead of here).
/trunk/KDE/kdelibs/kio/kio/kdirwatch.cpp
<http://reviewboard.kde.org/r/1963/#comment2157>
Why do we have #ifdef HAVE_SYS_INOTIFY_H twice here, why not merge them?
/trunk/KDE/kdelibs/kio/kio/kdirwatch_p.h
<http://reviewboard.kde.org/r/1963/#comment2158>
I think you accidentally left useless spaces here.
/trunk/KDE/kdelibs/kio/kio/kdirwatch_p.h
<http://reviewboard.kde.org/r/1963/#comment2159>
This portion seems inconsistent with the rest of the file's coding style (esp. spacing).
On the other hand it looks more in line with the kdelibs coding style. (http://techbase.kde.org/Policies/Kdelibs_Coding_Style)
Assuming the change gets tested/committed can you also update the coding style of the affected files to be in line with the kdelibs coding style?
- Michael
On 2009-10-24 14:59:32, Sebastian Sauer wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/1963/
> -----------------------------------------------------------
>
> (Updated 2009-10-24 14:59:32)
>
>
> Review request for kdelibs.
>
>
> Summary
> -------
>
> Problem;
> Under heavy hd load (e.g. compiling KDE) KDirWatch may freeze for fractions of seconds or even longer.
>
> Solution;
> Do the same QFileSystemWatcher (qt/src/corelib/io/qfilesystemwatcher_inotify.cpp) does and make the QSocketNotifier+inotifyEventReceived logic threaded.
>
> Warning;
> This *needs* review.
>
>
> Diffs
> -----
>
> /trunk/KDE/kdelibs/kio/kio/kdirwatch.cpp 1038809
> /trunk/KDE/kdelibs/kio/kio/kdirwatch_p.h 1038809
>
> Diff: http://reviewboard.kde.org/r/1963/diff
>
>
> Testing
> -------
>
> kdelibs/kio/tests/kdirwatch, kdelibs/kio/tests/kdirwatch_gui
>
>
> Thanks,
>
> Sebastian
>
>
More information about the kde-core-devel
mailing list