release_all_compute_devicesrelease_all_compute_devicesReleaseAllComputeDevicesReleaseAllComputeDevices (Operator)
Name
release_all_compute_devicesrelease_all_compute_devicesReleaseAllComputeDevicesReleaseAllComputeDevices
— Close all compute devices.
Warning
release_all_compute_devicesrelease_all_compute_devicesReleaseAllComputeDevicesReleaseAllComputeDevicesReleaseAllComputeDevices
must not be used in HDevelop!
Signature
release_all_compute_devices( : : : )
Herror release_all_compute_devices()
Herror T_release_all_compute_devices()
void ReleaseAllComputeDevices()
static void HComputeDevice::ReleaseAllComputeDevices()
Description
release_all_compute_devicesrelease_all_compute_devicesReleaseAllComputeDevicesReleaseAllComputeDevicesReleaseAllComputeDevices
closes all compute devices for the
current HALCON thread and frees all associated resources.
release_all_compute_devicesrelease_all_compute_devicesReleaseAllComputeDevicesReleaseAllComputeDevicesReleaseAllComputeDevices
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_all_compute_devicesrelease_all_compute_devicesReleaseAllComputeDevicesReleaseAllComputeDevicesReleaseAllComputeDevices
.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Result
release_all_compute_devicesrelease_all_compute_devicesReleaseAllComputeDevicesReleaseAllComputeDevicesReleaseAllComputeDevices
returns the value 2 (H_MSG_TRUE)
if all devices were closed successfully. Otherwise
an exception will be raised.
See also
release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevice
,
deactivate_compute_devicedeactivate_compute_deviceDeactivateComputeDeviceDeactivateComputeDeviceDeactivateComputeDevice
,
deactivate_all_compute_devicesdeactivate_all_compute_devicesDeactivateAllComputeDevicesDeactivateAllComputeDevicesDeactivateAllComputeDevices
Module
Foundation