diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-04-11 00:08:07 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-12 00:55:31 +0100 |
commit | 3b3af58cf6ca757319bf3814a35ebc6943a0f97a (patch) | |
tree | 827615ad231d91c19021570555aa210243f7c67f /Kernel/DoubleBuffer.cpp | |
parent | d6d1ae667d97aa5ceca55b4c99e8931b0c29aa56 (diff) | |
download | serenity-3b3af58cf6ca757319bf3814a35ebc6943a0f97a.zip |
Kernel: Annotate all `KBuffer` and `DoubleBuffer` with a custom name
Diffstat (limited to 'Kernel/DoubleBuffer.cpp')
-rw-r--r-- | Kernel/DoubleBuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/DoubleBuffer.cpp b/Kernel/DoubleBuffer.cpp index cc921ef7bb..63d128afb6 100644 --- a/Kernel/DoubleBuffer.cpp +++ b/Kernel/DoubleBuffer.cpp @@ -17,9 +17,9 @@ inline void DoubleBuffer::compute_lockfree_metadata() m_space_for_writing = m_capacity - m_write_buffer->size; } -ErrorOr<NonnullOwnPtr<DoubleBuffer>> DoubleBuffer::try_create(size_t capacity) +ErrorOr<NonnullOwnPtr<DoubleBuffer>> DoubleBuffer::try_create(StringView name, size_t capacity) { - auto storage = TRY(KBuffer::try_create_with_size(capacity * 2, Memory::Region::Access::ReadWrite, "DoubleBuffer")); + auto storage = TRY(KBuffer::try_create_with_size(name, capacity * 2, Memory::Region::Access::ReadWrite)); return adopt_nonnull_own_or_enomem(new (nothrow) DoubleBuffer(capacity, move(storage))); } |