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