예제 #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++;
	}
}