Bosma / Scheduler

Modern C++ Scheduling Library
MIT License
272 stars 74 forks source link

error when using Bosma::Scheduler in the class #24

Open phamtung1234 opened 3 years ago

phamtung1234 commented 3 years ago

I try to using Bosma::Scheduler in my application, I have a TestScheduler define as follow: ` class TestScheduler : public QWidget { Q_OBJECT

public: TestScheduler(QWidget parent = 0); ~TestScheduler(); void print(); } here is it implementation, very simple: TestScheduler::TestScheduler(QWidget parent) : QWidget(parent) { Bosma::Scheduler s(4); s.at("2021-05-26 15:50:00", &TestScheduler::print, this); }

void TestScheduler::print() { qDebug() << "ok"; } ` I run this above but has an error, scheduler do not working. I try to investigate this and found that an error has occupied in the file "ctpl_stl.h", I try print some simple string, the order of thread pool do as follow: