#14490: wxFileSystemWatcher: Use reference counting for wxFSWatchInfo
-----------------------------------------------+--------------------------- -
Reporter: dghart | Owner: Type: defect | Status: new
Priority: normal | Milestone: 2.9.5
Component: base | Version: 2.9-svn
Keywords: wxFileSystemWatcher wxFSWatchInfo | Blockedby: Patch: 1 | Blocking: -----------------------------------------------+--------------------------- -
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.