示例#1
0
 protected override void _Stop(MinerStopType willswitch)
 {
     Stop_cpu_ccminer_sgminer_nheqminer(willswitch);
 }
示例#2
0
 abstract protected void _Stop(MinerStopType willswitch);
 protected override void _Stop(MinerStopType willswitch)
 {
     ShutdownMiner();
 }
示例#4
0
 protected override void _Stop(MinerStopType willswitch)
 {
     IsRunning = false;
     _miner.StopMining();
 }
示例#5
0
 protected override void _Stop(MinerStopType willswitch)
 {
     Stop_cpu_ccminer_sgminer_nheqminer(willswitch);
 }
示例#6
0
        protected override void _Stop(MinerStopType willswitch)
        {
            Stop_cpu_ccminer_sgminer_nheqminer(willswitch);
//            RunCMDBeforeMining("AMD", false);
        }
示例#7
0
 protected override void _Stop(MinerStopType willswitch)
 {
     // TODO fixes instant start/stop
     ShutdownMiner(false);
 }
示例#8
0
 protected override void _Stop(MinerStopType willswitch)
 {
     // prevent logging non runing miner
     if (IsRunning && !IsPaused && willswitch == MinerStopType.SWITCH) {
         // daggerhashimoto - we only "pause" mining
         IsPaused = true;
         Helpers.ConsolePrint(MinerTAG(), ProcessTag() + " Pausing ethminer..");
         StopMining();
         return;
     } else if ((IsRunning || IsPaused) && willswitch != MinerStopType.SWITCH) {
         Helpers.ConsolePrint(MinerTAG(), ProcessTag() + " Shutting down miner");
     }
     if (willswitch == MinerStopType.END) ChangeToNextAvaliablePort();
     if ((willswitch == MinerStopType.FORCE_END || willswitch == MinerStopType.END) && ProcessHandle != null) {
         IsPaused = false; // shutting down means it is not paused
         try {
             ProcessHandle.Kill();
         } catch {
         } finally {
             ProcessHandle = null;
         }
     }
 }
 protected override void _Stop(MinerStopType willswitch)
 {
     Helpers.ConsolePrint("XMRIG", "_Stop");
     Stop_cpu_ccminer_sgminer_nheqminer(willswitch);
 }
示例#10
0
 protected abstract void _Stop(MinerStopType willswitch);
示例#11
0
        protected void Stop_cpu_ccminer_sgminer_nheqminer(MinerStopType willswitch)
        {
            if (IsRunning) {
                Helpers.ConsolePrint(MinerTAG(), ProcessTag() + " Shutting down miner");
            }
            if (willswitch != MinerStopType.FORCE_END) ChangeToNextAvaliablePort();
            if (ProcessHandle != null) {
                try { ProcessHandle.Kill(); } catch { }
                ProcessHandle.Close();
                ProcessHandle = null;

                // sgminer needs to be removed and kill by PID
                if (IsKillAllUsedMinerProcs) KillAllUsedMinerProcesses();
            }
        }
示例#12
0
 public virtual void Stop(MinerStopType willswitch = MinerStopType.SWITCH)
 {
     if (_cooldownCheckTimer != null) _cooldownCheckTimer.Stop();
     _Stop(willswitch);
     PreviousTotalMH = 0.0;
     IsRunning = false;
 }