Get rid of the PrioritizedWorkQueue. Instead just queue tasks on the ThreadManager.

This commit is contained in:
Henrik Rydgård
2020-11-30 16:46:52 +01:00
parent 34f8fc557f
commit 446c2c027e
17 changed files with 102 additions and 293 deletions

View File

@@ -7,7 +7,7 @@ public:
LoopRangeTask(WaitableCounter *counter, const std::function<void(int, int)> &loop, int lower, int upper)
: counter_(counter), loop_(loop), lower_(lower), upper_(upper) {}
void run() override {
void Run() override {
loop_(lower_, upper_);
counter_->Count();
}