コード例 #1
0
ファイル: Hwmon.cpp プロジェクト: mreyna1216/gator
void Hwmon::start() {
	for (HwmonCounter * counter = counters; counter != NULL; counter = counter->getNext()) {
		if (!counter->isEnabled()) {
			continue;
		}
		counter->read();
	}
}
コード例 #2
0
ファイル: Hwmon.cpp プロジェクト: mreyna1216/gator
void Hwmon::read(Buffer * const buffer) {
	for (HwmonCounter * counter = counters; counter != NULL; counter = counter->getNext()) {
		if (!counter->isEnabled()) {
			continue;
		}
		buffer->event(counter->getKey(), counter->read());
	}
}
コード例 #3
0
ファイル: Hwmon.cpp プロジェクト: mreyna1216/gator
bool Hwmon::countersEnabled() const {
	for (HwmonCounter * counter = counters; counter != NULL; counter = counter->getNext()) {
		if (counter->isEnabled()) {
			return true;
		}
	}
	return false;
}