View definition

(*CPUMiner).SetNumWorkers

Defined in github.com/btcsuite/btcd/cpuminer.go

Description

SetNumWorkers sets the number of workers to create which solve blocks. Any negative values will cause a default number of workers to be used which is based on the number of processor cores in the system. A value of 0 will cause all CPU mining to be stopped.

This function is safe for concurrent access.

SetNumWorkers is referenced in 1 repository

github.com/btcsuite/btcd