diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-11 13:03:32 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-11 13:03:32 +0200 |
commit | 38717dafc0e76fd5f939eb5ee76a278e2c74a752 (patch) | |
tree | 2cd88993400e0ae0e15d26417a831f6651b1d696 /src/cryptonote_basic/miner.h | |
parent | Merge pull request #5380 (diff) | |
parent | miner: fix race when stopping mining with start mining enabled (diff) | |
download | monero-38717dafc0e76fd5f939eb5ee76a278e2c74a752.tar.xz |
Merge pull request #5381
def40161 miner: fix race when stopping mining with start mining enabled (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_basic/miner.h')
-rw-r--r-- | src/cryptonote_basic/miner.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_basic/miner.h b/src/cryptonote_basic/miner.h index 08b1bd7f1..bbb576fff 100644 --- a/src/cryptonote_basic/miner.h +++ b/src/cryptonote_basic/miner.h @@ -125,6 +125,7 @@ namespace cryptonote uint64_t m_height; volatile uint32_t m_thread_index; volatile uint32_t m_threads_total; + std::atomic<uint32_t> m_threads_active; std::atomic<int32_t> m_pausers_count; epee::critical_section m_miners_count_lock; |