mirror of
https://github.com/monero-project/monero.git
synced 2025-05-04 15:05:05 -04:00
miner: fix race when stopping mining with start mining enabled
This commit is contained in:
parent
4308a2e173
commit
def4016171
2 changed files with 10 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue