MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / ImageMemoryPool

Class ImageMemoryPool

src/include/image/image_reader.hpp:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21};
22
23class ImageMemoryPool {
24public:
25 explicit ImageMemoryPool(size_t max_cached_per_size = 16);
26 bytes acquire(size_t size);
27 void recycle(bytes&& block);
28
29private:
30 size_t max_cached_per_size_;
31 std::unordered_map<size_t, std::vector<bytes>> free_lists_;
32 std::mutex mutex_;
33};
34
35class ImageReader {
36public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected