Index: src/utils.h |
diff --git a/src/utils.h b/src/utils.h |
index dcc4756a36de0ef258c415a2d9321b0853795393..bd5589cc895196827e55e2ec8b245f087507329e 100644 |
--- a/src/utils.h |
+++ b/src/utils.h |
@@ -1648,6 +1648,15 @@ class ThreadedList final { |
*tail_ = nullptr; |
} |
+ void MoveTail(ThreadedList<T>* parent, Iterator location) { |
+ if (parent->end() != location) { |
+ DCHECK_NULL(*tail_); |
+ *tail_ = *location; |
+ tail_ = parent->tail_; |
+ parent->Rewind(location); |
+ } |
+ } |
+ |
bool is_empty() const { return head_ == nullptr; } |
// Slow. For testing purposes. |