We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
now the priority queue's dequeue() is:
T dequeue_impl(/*out*/ long &ct, bool pop = true) { if (_count == 0) { ct = 0; return nullptr; } ct = --_count; int index = priority_count - 1; for (; index >= 0; index--) { if (_items[index].size() > 0) { break; } } assert(index >= 0); // "must find something"); auto c = _items[index].front(); _items[index].pop(); return c; }
if the HIGH priority queue is always not empty, the task in COMMON/LOW queue may be starved.
we can refer to the implementation of nfs_client_impl.
The text was updated successfully, but these errors were encountered:
feat: implement backup request (apache#93)
28b67ee
feat: add rrdb.thrift and replication.thrift (#93)
0a0602e
qinzuoyan
No branches or pull requests
now the priority queue's dequeue() is:
if the HIGH priority queue is always not empty, the task in COMMON/LOW queue may be starved.
we can refer to the implementation of nfs_client_impl.
The text was updated successfully, but these errors were encountered: