summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-12-05 15:57:48 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2020-12-06 01:08:22 +0000
commit404dd02443aebed284033e02ace8b791151aa7a9 (patch)
tree7102a446d3c1a8c2f9812f68d87a51416bd8f9cc
parentab7729747c4b55a93b8973e94429c747fe274529 (diff)
downloadlibgit2-404dd02443aebed284033e02ace8b791151aa7a9.tar.gz
threads: rename thread files to thread.[ch]
-rw-r--r--src/cache.c2
-rw-r--r--src/cache.h2
-rw-r--r--src/common.h2
-rw-r--r--src/libgit2.c2
-rw-r--r--src/pack-objects.c2
-rw-r--r--src/sortedcache.h2
-rw-r--r--src/thread.h (renamed from src/thread-utils.h)4
-rw-r--r--src/util.h2
-rw-r--r--tests/threads/thread_helpers.h2
9 files changed, 10 insertions, 10 deletions
diff --git a/src/cache.c b/src/cache.c
index dbd4c319a..2f68e357c 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -9,7 +9,7 @@
#include "repository.h"
#include "commit.h"
-#include "thread-utils.h"
+#include "thread.h"
#include "util.h"
#include "odb.h"
#include "object.h"
diff --git a/src/cache.h b/src/cache.h
index c43422d6f..42c4fa80d 100644
--- a/src/cache.h
+++ b/src/cache.h
@@ -13,7 +13,7 @@
#include "git2/oid.h"
#include "git2/odb.h"
-#include "thread-utils.h"
+#include "thread.h"
#include "oidmap.h"
enum {
diff --git a/src/common.h b/src/common.h
index 2b1a4a456..a4ddcf90b 100644
--- a/src/common.h
+++ b/src/common.h
@@ -78,7 +78,7 @@
#include "git2/types.h"
#include "git2/errors.h"
#include "errors.h"
-#include "thread-utils.h"
+#include "thread.h"
#include "integer.h"
#include "assert_safe.h"
diff --git a/src/libgit2.c b/src/libgit2.c
index 9e5112dbf..e41988c8e 100644
--- a/src/libgit2.c
+++ b/src/libgit2.c
@@ -22,7 +22,7 @@
#include "refs.h"
#include "runtime.h"
#include "sysdir.h"
-#include "thread-utils.h"
+#include "thread.h"
#include "threadstate.h"
#include "git2/global.h"
#include "streams/registry.h"
diff --git a/src/pack-objects.c b/src/pack-objects.c
index 81678537d..f9d8bfd35 100644
--- a/src/pack-objects.c
+++ b/src/pack-objects.c
@@ -12,7 +12,7 @@
#include "iterator.h"
#include "netops.h"
#include "pack.h"
-#include "thread-utils.h"
+#include "thread.h"
#include "tree.h"
#include "util.h"
#include "revwalk.h"
diff --git a/src/sortedcache.h b/src/sortedcache.h
index e553d01dd..ca8b10674 100644
--- a/src/sortedcache.h
+++ b/src/sortedcache.h
@@ -12,7 +12,7 @@
#include "util.h"
#include "futils.h"
#include "vector.h"
-#include "thread-utils.h"
+#include "thread.h"
#include "pool.h"
#include "strmap.h"
diff --git a/src/thread-utils.h b/src/thread.h
index 9b511b650..561e6ecc8 100644
--- a/src/thread-utils.h
+++ b/src/thread.h
@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
-#ifndef INCLUDE_thread_utils_h__
-#define INCLUDE_thread_utils_h__
+#ifndef INCLUDE_thread_h__
+#define INCLUDE_thread_h__
#if defined(GIT_THREADS)
diff --git a/src/util.h b/src/util.h
index b8ea68c5b..5076df282 100644
--- a/src/util.h
+++ b/src/util.h
@@ -18,7 +18,7 @@
#include "buffer.h"
#include "common.h"
#include "strnlen.h"
-#include "thread-utils.h"
+#include "thread.h"
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
#define bitsizeof(x) (CHAR_BIT * sizeof(x))
diff --git a/tests/threads/thread_helpers.h b/tests/threads/thread_helpers.h
index 3c13cfb6b..0f23a4ce0 100644
--- a/tests/threads/thread_helpers.h
+++ b/tests/threads/thread_helpers.h
@@ -1,4 +1,4 @@
-#include "thread-utils.h"
+#include "thread.h"
void run_in_parallel(
int repeats,