Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sure to call git_threads_init upon program entry and git_threads…

…_shutdown upon exit.
  • Loading branch information...
commit 3c69e2d64c70bd147a2c537e0a2353b95fa671ee 1 parent f2ef986
Andrej Mitrović authored
Showing with 10 additions and 5 deletions.
  1. +10 −5 src/git/c/threads.d
15 src/git/c/threads.d
View
@@ -19,6 +19,16 @@ import git.c.common;
extern (C):
+shared static this()
+{
+ git_threads_init();
+}
+
+shared static ~this()
+{
+ git_threads_shutdown();
+}
+
/**
* Init the threading system.
*
@@ -44,8 +54,3 @@ int git_threads_init();
* support, this function is a no-op.
*/
void git_threads_shutdown();
-
-
-
-
-
Please sign in to comment.
Something went wrong with that request. Please try again.