ThreadPool stand-alone results

This commit is contained in:
MihailRis 2024-04-05 20:36:11 +03:00
parent c1ab97eb15
commit 68320629de
4 changed files with 25 additions and 13 deletions

View file

@ -41,7 +41,6 @@ public:
);
~WorldConverter();
bool hasNext() const;
void convertNext();
void setOnComplete(runnable callback) {
@ -50,7 +49,7 @@ public:
void update() override {
convertNext();
if (onComplete && !hasNext()) {
if (onComplete && tasks.empty()) {
onComplete();
}
}