Releases the handle at the given index. The destructor will not use that XRTMemoryManager::Release() API on such handle.
| 89 | // Releases the handle at the given index. The destructor will not use that |
| 90 | // XRTMemoryManager::Release() API on such handle. |
| 91 | int64 Release(size_t index) { |
| 92 | int64 handle = handles_.at(index); |
| 93 | handles_[index] = XRTMemoryManager::InvalidKey(); |
| 94 | handles_release_[index] = false; |
| 95 | return handle; |
| 96 | } |
| 97 | |
| 98 | // Looks up the handle stored at the given index, and returns the matching |
| 99 | // tuple allocation. |
no test coverage detected