MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / unlock

Method unlock

src/core/array.rs:637–642  ·  view source on GitHub ↗

Unlock the device buffer in the memory manager This function will give back the control over the device pointer to the memory manager.

(&self)

Source from the content-addressed store, hash-verified

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 ///

Callers 3

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

HANDLE_ERRORFunction · 0.85

Tested by

no test coverage detected