Warning fix, delete broken Wait function in prio work queue

This commit is contained in:
Henrik Rydgard committed 2013-12-12 12:07:09 +01:00
1 parent b0ab77d4c2
commit c25cf61f54
5 files changed
+6 -23

No files matched your search

-14
View File
@@ -67,20 +67,6 @@ PrioritizedWorkQueueItem *PrioritizedWorkQueue::Pop() {
}
}
void PrioritizedWorkQueue::Wait(PrioritizedWorkQueueItem *item) {
while (true) {
bool stillThere = false;
lock_guard guard(mutex_);
for (int i = 0; i < queue_.empty(); i++) {
if (queue_[i] == item)
stillThere = true;
}
if (!stillThere)
break;
sleep_ms(100);
}
}
// TODO: This feels ugly. Revisit later.
static std::thread *workThread;