Skip to content

release_all_compute_devicesReleaseAllComputeDevicesReleaseAllComputeDevicesrelease_all_compute_devicesrelease_all_compute_devices🔗

Short description🔗

release_all_compute_devicesReleaseAllComputeDevicesReleaseAllComputeDevicesrelease_all_compute_devicesrelease_all_compute_devices — Close all compute devices.

Warning🔗

release_all_compute_devicesReleaseAllComputeDevices must not be used in HDevelop!

Signature🔗

release_all_compute_devices( )void ReleaseAllComputeDevices( )static void HOperatorSet.ReleaseAllComputeDevices( )def release_all_compute_devices( ) -> None

Herror release_all_compute_devices( )

Herror T_release_all_compute_devices( )

static void HComputeDevice::ReleaseAllComputeDevices( )

static void HComputeDevice.ReleaseAllComputeDevices( )

Description🔗

release_all_compute_devicesReleaseAllComputeDevices closes all compute devices for the current HALCON thread and frees all associated resources. release_all_compute_devicesReleaseAllComputeDevices 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_devicesReleaseAllComputeDevices.

Execution information🔗

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_devicesReleaseAllComputeDevices returns the value 2 (H_MSG_TRUE) if all devices were closed successfully. Otherwise an exception will be raised.

Combinations with other operators🔗

Combinations

See also

release_compute_deviceReleaseComputeDevice, deactivate_compute_deviceDeactivateComputeDevice, deactivate_all_compute_devicesDeactivateAllComputeDevices

Module🔗

Foundation