Add note about circular queue append contiguosity guarantees

This commit is contained in:
Billy Laws 2023-01-08 19:18:28 +00:00
parent 535eafb57a
commit 6b9be2edd4

View File

@ -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<Type> buffer) { void Append(span<Type> buffer) {
for (const auto &item : buffer) for (const auto &item : buffer)
Push(item); Push(item);