release_compute_deviceT_release_compute_deviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device (Operator)
Name
release_compute_deviceT_release_compute_deviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device
— Close a compute_device.
Warning
release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device
must not be used in HDevelop!
Signature
Description
release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device
closes a compute devices for the current
HALCON thread and frees all resources associated to DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle
.
release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device
is solely for the purpose of freeing all
device related resources before unloading the HALCON library, if the
library was loaded using a mechanism like LoadLibrary or dlopen. In all
other cases you must not use release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device
!
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: local (may only be called from the same thread in which the window, model, or tool instance was created).
- Processed without parallelization.
Parameters
DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle
(input_control) compute_device →
HComputeDevice, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Compute device handle.
Result
release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device
returns the value TRUE
if DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle
was closed successfully. Otherwise
an exception will be raised.
See also
release_all_compute_devicesrelease_all_compute_devicesReleaseAllComputeDevicesReleaseAllComputeDevicesReleaseAllComputeDevicesrelease_all_compute_devices
,
deactivate_compute_devicedeactivate_compute_deviceDeactivateComputeDeviceDeactivateComputeDeviceDeactivateComputeDevicedeactivate_compute_device
,
deactivate_all_compute_devicesdeactivate_all_compute_devicesDeactivateAllComputeDevicesDeactivateAllComputeDevicesDeactivateAllComputeDevicesdeactivate_all_compute_devices
Module
Foundation