Ticket #14490 (closed defect: fixed)
wxFileSystemWatcher: Use reference counting for wxFSWatchInfo
|Reported by:||dghart||Owned by:|
|Blocking:||14544, 14544, 14544, 14544, 14544, 14544, 14544, 14544, 14544, 14544, 14544|
As discussed in #14480 and on wx-dev, wxFileSystemWatcher (at least in wxGTK) can't currently cope with the not-impossible situation of someone creating a watch on a directory, and later doing AddTree() on a parent dir. The patch implements reference counting for wxFSWatchInfo to make this possible, and tests it in FileSystemWatcherTestCase. (It was created on top of the #14488 patches.)
Tested successfully in FileSystemWatcherTestCase and in the 'fswatcher' sample on wxGTK and wxMSW.