fixed empty of WFQueue

This commit is contained in:
Marcel Lütke Dreimann
2023-01-25 17:41:36 +01:00
parent 81ff9e39c0
commit 6a5bb0d444

View File

@@ -63,7 +63,7 @@ namespace gpgpu_virt::util {
* @return true
* @return false
*/
inline bool empty() const { return tail->next == nullptr; }
inline bool empty() const { return tail == &stub && tail->next == nullptr; }
};
inline void WFQueue::enqueue(Chain* item)