Re: [Development] Should QFileSystemWatcher be thread-safe? (Qt 5.8.0)

2017-09-29 Thread Thiago Macieira
On sexta-feira, 29 de setembro de 2017 14:47:29 PDT René J. V. Bertin wrote: > 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 hap

Re: [Development] Development Digest, Vol 72, Issue 38

2017-09-29 Thread Vladimir Moolle
Hi, not sure if this would look funny (would it?), but may be referencing the stock documentation page at http://doc.qt.io/qt-5.9/threads-reentrancy.html could help avoid further confusion (and unnecessarily heating the thread). On Sat, Sep 30, 2017 at 12:50 AM, wrote: > Send Development maili

Re: [Development] Should QFileSystemWatcher be thread-safe? (Qt 5.8.0)

2017-09-29 Thread René J . V . Bertin
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 th

Re: [Development] Should QFileSystemWatcher be thread-safe? (Qt 5.8.0)

2017-09-29 Thread Thiago Macieira
On sexta-feira, 29 de setembro de 2017 12:50:07 PDT René J. V. Bertin wrote: > Thiago Macieira wrote: > > We're not claiming that you have no problem. We're saying the problem is > > probably in your own code. > > It's a kind of chicken-or-egg question. I'm indeed doing something that > triggers a

Re: [Development] Should QFileSystemWatcher be thread-safe? (Qt 5.8.0)

2017-09-29 Thread René J . V . Bertin
Thiago Macieira wrote: > We're not claiming that you have no problem. We're saying the problem is > probably in your own code. It's a kind of chicken-or-egg question. I'm indeed doing something that triggers a problem which is clearly deep inside Qt code. What I want to know is whether it's a

Re: [Development] Should QFileSystemWatcher be thread-safe? (Qt 5.8.0)

2017-09-29 Thread Thiago Macieira
On sexta-feira, 29 de setembro de 2017 05:54:53 PDT René J.V. Bertin wrote: > On Friday September 29 2017 14:27:37 Milian Wolff wrote: > > behavior you are supposedly seeing. > > So you still haven't bothered trying to reproduce this or prove me wrong, > aside implying I'm making this all up? In t

Re: [Development] Should QFileSystemWatcher be thread-safe? (Qt 5.8.0)

2017-09-29 Thread Thiago Macieira
On sexta-feira, 29 de setembro de 2017 02:49:32 PDT Konrad Rosenbaum wrote: > This is why you were able to solve the problem with a Mutex: you ensured > that the instance was only used by one instance at a time. That is not a full solution. You may be able to serialise all *your* access with a mu

Re: [Development] Should QFileSystemWatcher be thread-safe? (Qt 5.8.0)

2017-09-29 Thread Milian Wolff
On Freitag, 29. September 2017 11:35:40 CEST René J.V. Bertin wrote: > Hi, > > I've been running into issues using adding and removing entries from QFSW in > concurrent threads. This is in KDevelop while adding all directories of > multiple projects (source trees) to a single QFSW instance per pro

Re: [Development] Should QFileSystemWatcher be thread-safe? (Qt 5.8.0)

2017-09-29 Thread René J . V . Bertin
On Friday September 29 2017 14:27:37 Milian Wolff wrote: > behavior you are supposedly seeing. So you still haven't bothered trying to reproduce this or prove me wrong, aside implying I'm making this all up? In that case I'm not sure why *you* come trolling on a post that intends to find out if

Re: [Development] Should QFileSystemWatcher be thread-safe? (Qt 5.8.0)

2017-09-29 Thread Konrad Rosenbaum
Hi, On Fri, September 29, 2017 11:35, René J.V. Bertin wrote: > I've been running into issues using adding and removing entries from QFSW > in concurrent threads. [cut] > The QFSW documentation only mentions the class is reentrant. Is QFSW > supposed to be thread-safe (at least at the class level)

[Development] Should QFileSystemWatcher be thread-safe? (Qt 5.8.0)

2017-09-29 Thread René J . V . Bertin
Hi, I've been running into issues using adding and removing entries from QFSW in concurrent threads. This is in KDevelop while adding all directories of multiple projects (source trees) to a single QFSW instance per project. The app is somewhat complex so I think but am not entirely certain tha