Пример #1
0
void Processor::run() {
    while (true) {
        while (buffer_.pop());

        if (!isRunning.load()) {
            return;
        }

        // TODO: make this configurable
        sleep_for_millis(1);
    }
}
Пример #2
0
void Processor::run() {
    while (true) {
        while (buffer_.pop());

        if (!handler_.updateSigprofInterval()) {
            return;
        }

        if (!isRunning.load()) {
            return;
        }

        // TODO: make this configurable
        sleep_for_millis(1);
    }
}