修复关闭时候的错误

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 -3
View File
@@ -22,14 +22,18 @@ namespace YSG {
void run() override;
void post(std::function<void()> task);
void postCpu(std::function<void()> task);
void removePlot(Plot* plot);
void shutdown();
bool isSchedulerThread() const;
asio::io_context& ioContext();
private:
void joinCpuPool();
void postAndWait(std::function<void()> task);
void removePlotOnScheduler(Plot* plot);
void shutdownOnScheduler();
void stopSchedulerOnScheduler();
std::unique_ptr<TimerThreadPrivate> d;
};
class LIB_DECL Global : public QObject, public Psc::Singleton<Global> {
public:
int r = qInitResources_resource();