| 122 | } |
| 123 | |
| 124 | void FlowControlProtocol::start() { |
| 125 | if (_reportInterval <= 0) |
| 126 | return; |
| 127 | if (running_) |
| 128 | return; |
| 129 | running_ = true; |
| 130 | logger_->log_trace("FlowControl Protocol Start"); |
| 131 | _thread = std::thread(run, this); |
| 132 | _thread.detach(); |
| 133 | } |
| 134 | |
| 135 | void FlowControlProtocol::stop() { |
| 136 | if (!running_) |
no test coverage detected