mirror of
https://github.com/monero-project/monero.git
synced 2025-08-05 22:34:11 -04:00
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)
This commit is contained in:
commit
6c7d928f19
3 changed files with 13 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue