示例#1
0
void FileWatcher::pollAll() {
	// check each file:
	WatcherMap::iterator it = gWatchedFiles.begin();
	while (it != gWatchedFiles.end()) {
		it->second.test();
		it++;
	}
}
示例#2
0
FileWatcher::~FileWatcher(){ 
	// check each file:
	WatcherMap::iterator it = gWatchedFiles.begin();
	while (it != gWatchedFiles.end()) {
		it->second.remove(this);
		it++;
	}
}