Ticket #14490 (closed defect: fixed)
wxFileSystemWatcher: Use reference counting for wxFSWatchInfo
| Reported by: | dghart | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.9.5 |
| Component: | base | Version: | 2.9-svn |
| Keywords: | wxFileSystemWatcher wxFSWatchInfo | Cc: | |
| Blocked By: | Patch: | yes | |
| Blocking: | 14544, 14544, 14544, 14544, 14544, 14544, 14544, 14544, 14544, 14544, 14544 |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

