mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
ThreadPool stand-alone results
This commit is contained in:
parent
c1ab97eb15
commit
68320629de
4 changed files with 25 additions and 13 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue