| 326 | } |
| 327 | |
| 328 | void GRTimePlotAddon::replot() |
| 329 | { |
| 330 | if(!time_sink) |
| 331 | return; |
| 332 | #ifdef GUI_THREAD_SAMPLING |
| 333 | time_sink->updateData(); |
| 334 | drawPlot(); |
| 335 | if(m_refreshTimerRunning) |
| 336 | m_plotTimer->start(); |
| 337 | #else |
| 338 | refillFuture = QtConcurrent::run([=]() { |
| 339 | // qInfo(CAT_GRTIMEPLOT)<<"UpdateData"; |
| 340 | std::unique_lock lock(refillMutex); |
| 341 | |
| 342 | time_sink->updateData(); |
| 343 | }); |
| 344 | fw->setFuture(refillFuture); |
| 345 | #endif |
| 346 | } |
| 347 | |
| 348 | void GRTimePlotAddon::updateBufferPreviewer() { m_bufferPreviewer->updateBufferPreviewer(); } |
| 349 |
no test coverage detected