From 6b9be2edd426d4fb3e8ffb55c557759a2fd516a5 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sun, 8 Jan 2023 19:18:28 +0000 Subject: [PATCH] Add note about circular queue append contiguosity guarantees --- app/src/main/cpp/skyline/common/circular_queue.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/cpp/skyline/common/circular_queue.h b/app/src/main/cpp/skyline/common/circular_queue.h index 8a97c812..73eb5116 100644 --- a/app/src/main/cpp/skyline/common/circular_queue.h +++ b/app/src/main/cpp/skyline/common/circular_queue.h @@ -119,6 +119,9 @@ namespace skyline { } + /** + * @note The appended elements may not necessarily be directly contiguous as another thread could push elements in between those in the span + */ void Append(span buffer) { for (const auto &item : buffer) Push(item);