git_packbuilder_set_threads

Set number of threads to spawn

By default, libgit2 won't spawn any threads at all; when set to 0, libgit2 will autodetect the number of CPUs.

extern (C) nothrow @nogc
uint
git_packbuilder_set_threads

Parameters

pb libgit2_d.types.git_packbuilder*

The packbuilder

n uint

Number of threads to spawn

Return Value

Type: uint

number of actual threads to be used

Meta