Affinity
Top  Previous  Next

Description

Returns or sets the number of logical CPUs (cores) used in image processing algorithms.

Syntax


[VB]
objActiveUSB.Affinity [= Value]


[C/C++]
HRESULT get_Affinity ( short *pAffinity );
HRESULT put_Affinity ( short Affinity );


Data Type
[VB]

Integer


Parameters
[C/C++]

pAffinity[out,retval]  
Pointer to the currently selected Affinity.  
Affinity [in]  
The value of affinity to set. If 0, all available logical CPUs will be used.     


Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB code instructs ActiveUSB to use 4 logical CPUs:

ActiveUSB1.Affinity = 4
 

Remarks


This property lets you select the number of logical CPUs that will be used for image processing, such as Bayer Conversion. By default ActiveUSB splits the processing tasks among all logical CPUs (cores) available on the system. You may want to reduce the amount of utilized cores for benchmarking or to free CPU resources for other tasks.

The default value of this property is zero which makes ActiveUSB to use to all available logical CPUs.