diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-03-23 23:01:26 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2022-03-23 23:43:35 +0000 |
commit | 3e9bc19ad523361e6b18057849e30c0c48183915 (patch) | |
tree | b7b012a9734ce39d054fc5d92302780fd838e5c8 /profiling/client/src/IBufferManager.hpp | |
parent | 277618302d0f131eac0b6ac2015dd3eb09aa6ff9 (diff) | |
download | armnn-3e9bc19ad523361e6b18057849e30c0c48183915.tar.gz |
IVGCVSW-6706 Create the libpipeClient library
Change-Id: I2368aade38ad3808fab55d8a86cd659d4e95d91e
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'profiling/client/src/IBufferManager.hpp')
-rw-r--r-- | profiling/client/src/IBufferManager.hpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/profiling/client/src/IBufferManager.hpp b/profiling/client/src/IBufferManager.hpp new file mode 100644 index 0000000000..6aec43f643 --- /dev/null +++ b/profiling/client/src/IBufferManager.hpp @@ -0,0 +1,43 @@ +// +// Copyright © 2019 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include "IConsumer.hpp" +#include "IPacketBuffer.hpp" + +#include <memory> + +#define MAX_METADATA_PACKET_LENGTH 4096 + +namespace arm +{ + +namespace pipe +{ + +class IBufferManager +{ +public: + virtual ~IBufferManager() {} + + virtual IPacketBufferPtr Reserve(unsigned int requestedSize, unsigned int& reservedSize) = 0; + + virtual void Commit(IPacketBufferPtr& packetBuffer, unsigned int size, bool notifyConsumer = true) = 0; + + virtual void Release(IPacketBufferPtr& packetBuffer) = 0; + + virtual IPacketBufferPtr GetReadableBuffer() = 0; + + virtual void MarkRead(IPacketBufferPtr& packetBuffer) = 0; + + virtual void SetConsumer(IConsumer* consumer) = 0; + + virtual void FlushReadList() = 0; +}; + +} // namespace pipe + +} // namespace arm |