Unlock the device buffer in the memory manager This function will give back the control over the device pointer to the memory manager.
(&self)
| 635 | /// This function will give back the control over the device pointer to the |
| 636 | /// memory manager. |
| 637 | pub fn unlock(&self) { |
| 638 | unsafe { |
| 639 | let err_val = af_unlock_array(self.handle); |
| 640 | HANDLE_ERROR(AfError::from(err_val)); |
| 641 | } |
| 642 | } |
| 643 | |
| 644 | /// Get the device pointer and lock the buffer in memory manager |
| 645 | /// |
no test coverage detected