public class ProcessorSettings
extends java.lang.Object
Information about using processor cores
Constructor and Description |
---|
ProcessorSettings(boolean useAllCores)
Initialize an instance of
ProcessorSettings class |
Modifier and Type | Method and Description |
---|---|
int |
getMaxAdditionalAllowedThreads()
Specify the maximal number of additional threads to run code in parallel
|
boolean |
getUseAllCores()
Is needed to use all cores.
|
int |
getUseOnlyThisCoresCount()
Specify the number of cores to use.
|
void |
setMaxAdditionalAllowedThreads(int value)
Specify the maximal number of additional threads to run code in parallel
|
void |
setUseAllCores(boolean value)
Is needed to use all cores.
|
void |
setUseOnlyThisCoresCount(int value)
Specify the number of cores to use.
|
public ProcessorSettings(boolean useAllCores)
Initialize an instance of ProcessorSettings
class
useAllCores
- public boolean getUseAllCores()
Is needed to use all cores. Compact framework can not determine the number of cores. For compact framework need use field UseOnlyThisCoresCount, to specify the number of cores.
[Java] BarCodeReader.getProcessorSettings().getUseAllCores();
public void setUseAllCores(boolean value)
Is needed to use all cores. Compact framework can not determine the number of cores. For compact framework need use field UseOnlyThisCoresCount, to specify the number of cores.
[Java] BarCodeReader.getProcessorSettings().setUseAllCores(false); reader.setManualHints(ManualHint.INVERT_IMAGE);
public int getUseOnlyThisCoresCount()
Specify the number of cores to use. You need to change the property "UseAllCores" to "false".
[Java] BarCodeReader.getProcessorSettings().getUseOnlyThisCoresCount();
public void setUseOnlyThisCoresCount(int value)
Specify the number of cores to use. You need to change the property "UseAllCores" to "false".
[Java] BarCodeReader.getProcessorSettings().setUseOnlyThisCoresCount(3);
public int getMaxAdditionalAllowedThreads()
Specify the maximal number of additional threads to run code in parallel
[Java] BarCodeReader.getProcessorSettings().getMaxAdditionalAllowedThreads();
public void setMaxAdditionalAllowedThreads(int value)
Specify the maximal number of additional threads to run code in parallel
[Java] BarCodeReader.getProcessorSettings().setMaxAdditionalAllowedThreads(24);