/* * Copyright (C) 2018-2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "core/memory_manager/graphics_allocation.h" #include namespace NEO { class CommandStreamReceiver; class AllocationsList : public IDList { public: std::unique_ptr detachAllocation(size_t requiredMinimalSize, CommandStreamReceiver &commandStreamReceiver, GraphicsAllocation::AllocationType allocationType); std::unique_lock obtainUniqueOwnership(); private: GraphicsAllocation *detachAllocationImpl(GraphicsAllocation *, void *); std::mutex mutex; }; } // namespace NEO