[#btck_chainstate_manager_options_set_worker_threads_num]
= btck&lowbar;chainstate&lowbar;manager&lowbar;options&lowbar;set&lowbar;worker&lowbar;threads&lowbar;num
:mrdocs:

Set the number of available worker threads used during validation&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;&lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
void
btck&lowbar;chainstate&lowbar;manager&lowbar;options&lowbar;set&lowbar;worker&lowbar;threads&lowbar;num(
    xref:btck_ChainstateManagerOptions-08.adoc[btck&lowbar;ChainstateManagerOptions]* chainstate&lowbar;manager&lowbar;options,
    int worker&lowbar;threads);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chainstate&lowbar;manager&lowbar;options* [in]
| Non&hyphen;null, options to be set&period;
| *worker&lowbar;threads* [in]
| The number of worker threads that should be spawned in the thread pool used for validation&period; When set to 0 no parallel verification is done&period; The value range is clamped internally between 0 and 15&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
