diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-04-11 00:23:43 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-04-11 00:23:43 +0200 |
commit | 6353e5b0e5e5bc180cdffa77f72b16bf350a6cd9 (patch) | |
tree | c9bfe6aaf1462f41ef996ae7942f2b526f66b76a | |
parent | Merge pull request #1944 (diff) | |
parent | miner: add a debug log in pause and resume (diff) | |
download | monero-6353e5b0e5e5bc180cdffa77f72b16bf350a6cd9.tar.xz |
Merge pull request #1946
a38343bf miner: add a debug log in pause and resume (moneromooo-monero)
-rw-r--r-- | src/cryptonote_basic/miner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp index 2f33f9e40..9f2da8a94 100644 --- a/src/cryptonote_basic/miner.cpp +++ b/src/cryptonote_basic/miner.cpp @@ -377,6 +377,7 @@ namespace cryptonote void miner::pause() { CRITICAL_REGION_LOCAL(m_miners_count_lock); + MDEBUG("miner::pause: " << m_pausers_count << " -> " << (m_pausers_count + 1)); ++m_pausers_count; if(m_pausers_count == 1 && is_mining()) MDEBUG("MINING PAUSED"); @@ -385,6 +386,7 @@ namespace cryptonote void miner::resume() { CRITICAL_REGION_LOCAL(m_miners_count_lock); + MDEBUG("miner::resume: " << m_pausers_count << " -> " << (m_pausers_count - 1)); --m_pausers_count; if(m_pausers_count < 0) { |