Skip to content

global: clarify correct usage of git_libgit2_init with threads#3972

Closed
pks-t wants to merge 1 commit into
libgit2:masterfrom
pks-t:pks/global-init-threading-documentation
Closed

global: clarify correct usage of git_libgit2_init with threads#3972
pks-t wants to merge 1 commit into
libgit2:masterfrom
pks-t:pks/global-init-threading-documentation

Conversation

@pks-t

@pks-t pks-t commented Oct 27, 2016

Copy link
Copy Markdown
Member

git_libgit2_init needs to be called is a single-threaded
context first, as it also sets up threading-related data
structures. While the fact that it does so is mentioned in the
function's documentation, we do not mention the consequences.

Improve the documentation so that we explicitly note that
git_libgit2_init shall be called before making use of threads.

Refs #3969

`git_libgit2_init` needs to be called is a single-threaded
context first, as it also sets up threading-related data
structures. While the fact that it does so is mentioned in the
function's documentation, we do not mention the consequences.

Improve the documentation so that we explicitly note that
`git_libgit2_init` shall be called before making use of threads.
@pks-t

pks-t commented Nov 1, 2016

Copy link
Copy Markdown
Member Author

Closing in favor of #3974

@pks-t pks-t closed this Nov 1, 2016
@pks-t pks-t deleted the pks/global-init-threading-documentation branch February 8, 2017 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant