コード例 #1
0
ファイル: processor.cpp プロジェクト: diwayou/honest-profiler
void Processor::run() {
    while (true) {
        while (buffer_.pop());

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

        // TODO: make this configurable
        sleep_for_millis(1);
    }
}
コード例 #2
0
ファイル: processor.cpp プロジェクト: atramos/honest-profiler
void Processor::run() {
    while (true) {
        while (buffer_.pop());

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

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

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