[Development] Should QFileSystemWatcher be thread-safe? (Qt 5.8.0)
René J. V. Bertin
rjvbertin at gmail.com
Fri Sep 29 23:47:29 CEST 2017
Thiago Macieira wrote:
>> How does QFSW handle a situation in which an already watched directory is
>> changed while another directory is being added? Would something else happen
>> when adding directories happens on a background thread while change signals
>> are connected to slots on the main thread?
>
> The Darwin implementation has an internal mutex so that the dispatcher thread
> (I'm assuming) is able to get to the current state.
Can I assume that the other platforms have a similar feature that blocks access
to the current state while entries are being added or removed (and also defers
adding/removing entries while sending out change notifications)?
R
More information about the Development
mailing list