libgit2

git_packbuilder_set_threads

Version:

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.

Signature

unsigned int git_packbuilder_set_threads(git_packbuilder *pb, unsigned int n);

Parameters

In
pb

The packbuilder

unsigned int
In
n

Number of threads to spawn

Returns

unsigned int

number of actual threads to be used

Versions