修复关闭时候的错误

This commit is contained in:
2026-07-23 09:35:29 +08:00
parent c3e96d2f86
commit d1aac0e679
10 changed files with 207 additions and 71 deletions
+7 -5
View File
@@ -2,11 +2,12 @@
#include "asio.hpp"
#include "Plot.h"
#include <atomic>
#include <condition_variable>
#include <QApplication>
#include <QThread>
#include <memory>
#include <mutex>
namespace YSG {
struct PlotPrivate {
explicit PlotPrivate(Plot* plot) : q(plot) {};
@@ -15,14 +16,15 @@ namespace YSG {
TimerThread* mTimerThread{};
std::unique_ptr<asio::steady_timer> mRenderTimer;
bool mRenderEnabled = false;
std::atomic_bool mDestroying{false};
std::atomic_int mActiveRenderTasks{0};
std::condition_variable mRenderTaskDone;
std::mutex mRenderTaskMutex;
QSize mRenderSize;
RenderAble::RenderPipeline mPipeline;
SpinLock mBufferLock, mRenderLock, mPrepareDataLock, mMustPrepareDataLock;
QColor mBackground = Qt::black;
PerformanceShower *mShower{};
};
}