revert to qthreadpool

This commit is contained in:
yifang 2022-01-08 18:37:59 +08:00
parent b2e5f43652
commit a4133761ee

4
zim.cc
View file

@ -1373,7 +1373,9 @@ class ZimResourceRequest: public Dictionary::DataRequest
public:
ZimResourceRequest(ZimDictionary &dict_, string const &resourceName_)
: dict(dict_), resourceName(resourceName_) {
(new ZimResourceRequestRunnable(*this, hasExited))->run();
//(new ZimResourceRequestRunnable(*this, hasExited))->run();
QThreadPool::globalInstance()->start(
new ZimResourceRequestRunnable( *this, hasExited ) );
}
void run(); // Run from another thread by ZimResourceRequestRunnable