diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2020-03-31 15:14:12 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2020-03-31 15:14:12 -0500 |
| commit | 6c7d928f19b57e0e26ce580adf105d476a8760f2 (patch) | |
| tree | e8f7e56bd94110bc6038cdb288e6bc6a48298b58 /src/common/threadpool.cpp | |
| parent | 94f44d4ee311973527adb0d30e255f815fc5bbbc (diff) | |
| parent | e3779775d77a986d90f47708570bc1d6de26d5e7 (diff) | |
| download | monzero-core-6c7d928f19b57e0e26ce580adf105d476a8760f2.tar.gz monzero-core-6c7d928f19b57e0e26ce580adf105d476a8760f2.tar.xz monzero-core-6c7d928f19b57e0e26ce580adf105d476a8760f2.zip | |
Merge pull request #6336
760ecf2 console_handler: do not let exception past the dor (moneromooo-monero)
09c8111 threadpool: lock mutex in create (moneromooo-monero)
e377977 tx_pool: catch theoretical error in get_block_reward (moneromooo-monero)
Diffstat (limited to 'src/common/threadpool.cpp')
| -rw-r--r-- | src/common/threadpool.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/threadpool.cpp b/src/common/threadpool.cpp index 18204eeee..753bf238c 100644 --- a/src/common/threadpool.cpp +++ b/src/common/threadpool.cpp @@ -71,6 +71,7 @@ void threadpool::recycle() { } void threadpool::create(unsigned int max_threads) { + const boost::unique_lock<boost::mutex> lock(mutex); boost::thread::attributes attrs; attrs.set_stack_size(THREAD_STACK_SIZE); max = max_threads ? max_threads : tools::get_max_concurrency(); |
