Drops the handle at the given index, and releases it using the XRTMemoryManager::Release() if marked as to-be-released.
| 79 | // Drops the handle at the given index, and releases it using the |
| 80 | // XRTMemoryManager::Release() if marked as to-be-released. |
| 81 | Status Drop(size_t index) { |
| 82 | if (handles_release_.at(index)) { |
| 83 | TF_RETURN_IF_ERROR(memory_manager_->Release(handles_[index])); |
| 84 | } |
| 85 | Release(index); |
| 86 | return Status::OK(); |
| 87 | } |
| 88 | |
| 89 | // Releases the handle at the given index. The destructor will not use that |
| 90 | // XRTMemoryManager::Release() API on such handle. |
no test coverage detected