void Processor::run() { while (true) { while (buffer_.pop()); if (!isRunning.load()) { return; } // TODO: make this configurable sleep_for_millis(1); } }
void Processor::run() { while (true) { while (buffer_.pop()); if (!handler_.updateSigprofInterval()) { return; } if (!isRunning.load()) { return; } // TODO: make this configurable sleep_for_millis(1); } }