| 64 | class Block { |
| 65 | public: |
| 66 | Block(void* ptr, size_t size, Device* device = nullptr, size_t offset = 0) |
| 67 | : data_(ptr), size_(size), offset_(offset), device_(device) { |
| 68 | ref_count_ = 1; // std::make_shared<std::atomic<int>>(1); |
| 69 | } |
| 70 | // Disabled as it is not used currently. |
| 71 | // Block(void* ptr, size_t size, size_t offset, std::shared_ptr<atomic<int>> |
| 72 | // ref) : data_(ptr), size_(size), offset_(offset), ref_count_(ref) {} |
nothing calls this directly
no outgoing calls
no test coverage detected