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