MCPcopy Create free account
hub / github.com/LemLib/LemLib / taskLoop

Method taskLoop

src/lemlib/logger/buffer.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30void Buffer::setRate(uint32_t rate) { this->rate = rate; }
31
32void Buffer::taskLoop() {
33 while (true) {
34 mutex.take();
35 if (buffer.size() > 0) {
36 bufferFunc(buffer.at(0));
37 buffer.pop_front();
38 }
39 mutex.give();
40 pros::delay(rate);
41 }
42}
43} // namespace lemlib

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected