[FWN] Remove deprecated scheduling code
This commit is contained in:
parent
3a9d0df75c
commit
9c0c588ed6
2 changed files with 1 additions and 8 deletions
|
|
@ -16,16 +16,10 @@
|
||||||
|
|
||||||
BlockChain::BlockChain()
|
BlockChain::BlockChain()
|
||||||
: chainThread(new fc::thread("chainThread")),
|
: chainThread(new fc::thread("chainThread")),
|
||||||
fcTaskScheduler(new QTimer(this)),
|
|
||||||
grapheneApp(new graphene::app::application),
|
grapheneApp(new graphene::app::application),
|
||||||
webUsername(QStringLiteral("webui")),
|
webUsername(QStringLiteral("webui")),
|
||||||
webPassword(QString::fromStdString(fc::sha256::hash(fc::ecc::private_key::generate())))
|
webPassword(QString::fromStdString(fc::sha256::hash(fc::ecc::private_key::generate())))
|
||||||
{
|
{}
|
||||||
fcTaskScheduler->setInterval(100);
|
|
||||||
fcTaskScheduler->setSingleShot(false);
|
|
||||||
connect(fcTaskScheduler, &QTimer::timeout, [] {fc::yield();});
|
|
||||||
fcTaskScheduler->start();
|
|
||||||
}
|
|
||||||
|
|
||||||
BlockChain::~BlockChain() {
|
BlockChain::~BlockChain() {
|
||||||
startFuture.cancel_and_wait(__FUNCTION__);
|
startFuture.cancel_and_wait(__FUNCTION__);
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ class BlockChain : public QObject {
|
||||||
Q_PROPERTY(QString webPassword MEMBER webPassword CONSTANT)
|
Q_PROPERTY(QString webPassword MEMBER webPassword CONSTANT)
|
||||||
|
|
||||||
fc::thread* chainThread;
|
fc::thread* chainThread;
|
||||||
QTimer* fcTaskScheduler;
|
|
||||||
graphene::app::application* grapheneApp;
|
graphene::app::application* grapheneApp;
|
||||||
fc::future<void> startFuture;
|
fc::future<void> startFuture;
|
||||||
QString webUsername;
|
QString webUsername;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue