Commit a5ee9e46 authored by octal's avatar octal

Forgot to declare Queue<T>::pop member function virtual.

This had the effect of busy-polling the CPU up to 100% as
the event_fd was not read()
parent 857fd82b
......@@ -193,7 +193,7 @@ public:
prev->next = entry;
}
Entry* pop() {
virtual Entry* pop() {
auto *res = tail;
auto *next = res->next.load(std::memory_order_acquire);
if (next) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment