Commit 09b9014f authored by Dominik Charousset's avatar Dominik Charousset

Add convenience function

parent 8cacaaa9
...@@ -158,6 +158,14 @@ public: ...@@ -158,6 +158,14 @@ public:
dec_total_task_size(policy_.task_size(x)); dec_total_task_size(policy_.task_size(x));
} }
/// @private
task_size_type next_task_size() const noexcept {
if (head_.next == nullptr)
return 0;
auto ptr = promote(head_.next);
return policy_.task_size(*ptr);
}
/// @private /// @private
unique_pointer next(task_size_type& deficit) noexcept { unique_pointer next(task_size_type& deficit) noexcept {
unique_pointer result; unique_pointer result;
......
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