修复关闭时候的错误
This commit is contained in:
@@ -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{};
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user