77 #if defined(MRPT_OS_LINUX) || defined(__APPLE__)
std::queue< TFileSystemChange * > m_queue_events_win32_msgs
std::string path
Complete path of the file/directory that has changed.
void getChanges(TFileSystemChangeList &out_list)
Call this method sometimes to get the list of changes in the watched directory.
std::deque< TFileSystemChange > TFileSystemChangeList
std::string m_watchedDirectory
Ended in "/".
std::thread m_watchThread
void thread_win32_watch()
Watch thread; only needed in win32.
std::mutex m_queue_events_win32_cs
This class subscribes to notifications of file system changes, thus it can be used to efficiently sta...
bool isDir
Whether the event happened to a file or a directory.
virtual ~CFileSystemWatcher()
Destructor.
Each of the changes detected by utils::CFileSystemWatcher.
TFileSystemChange()=default
CFileSystemWatcher(const std::string &path)
Creates the subscription to a specified path.