code: func (m *CPUMiner) NumWorkers() int32 {
  	m.Lock()
  	defer m.Unlock()
  
  	return int32(m.numWorkers)
  }
docs: // NumWorkers returns the number of workers which are running to solve blocks.
  //
  // This function is safe for concurrent access.