NiceHashMiner.Devices.ComputeDevice.ComputeDevice C# (CSharp) Method

ComputeDevice() public method

public ComputeDevice ( int id, string group, string name, int threads, ulong affinityMask, int CPUCount ) : System
id int
group string
name string
threads int
affinityMask ulong
CPUCount int
return System
        public ComputeDevice(int id, string group, string name, int threads, ulong affinityMask, int CPUCount)
        {
            ID = id;
            Name = name;
            Threads = threads;
            AffinityMask = affinityMask;
            Enabled = true;
            DeviceGroupType = DeviceGroupType.CPU;
            DeviceType = DeviceType.CPU;
            NameCount = String.Format(International.GetText("ComputeDevice_Short_Name_CPU"), CPUCount);
            UUID = GetUUID(ID, GroupNames.GetGroupName(DeviceGroupType, ID), Name, DeviceGroupType);
            AlgorithmSettings = GroupAlgorithms.CreateForDevice(this);
            IsEtherumCapale = false;
        }

Same methods

ComputeDevice::ComputeDevice ( AmdGpuDevice amdDevice, int GPUCount, bool isDetectionFallback ) : System
ComputeDevice::ComputeDevice ( CudaDevice cudaDevice, DeviceGroupType group, int GPUCount ) : System
ComputeDevice::ComputeDevice ( int id ) : System