mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
kernel: Add chainstate manager option for setting worker threads
Re-use the same pattern used for the context options. This allows users to set the number of threads used in the validation thread pool.
This commit is contained in:
@@ -689,6 +689,12 @@ btck_ChainstateManagerOptions* btck_chainstate_manager_options_create(const btck
|
||||
}
|
||||
}
|
||||
|
||||
void btck_chainstate_manager_options_set_worker_threads_num(btck_ChainstateManagerOptions* opts, int worker_threads)
|
||||
{
|
||||
LOCK(btck_ChainstateManagerOptions::get(opts).m_mutex);
|
||||
btck_ChainstateManagerOptions::get(opts).m_chainman_options.worker_threads_num = worker_threads;
|
||||
}
|
||||
|
||||
void btck_chainstate_manager_options_destroy(btck_ChainstateManagerOptions* options)
|
||||
{
|
||||
delete options;
|
||||
|
||||
Reference in New Issue
Block a user