summaryrefslogtreecommitdiff
path: root/pack-objects.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-11-03 08:48:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-05 04:42:11 (GMT)
commit9c897c5c2ad27d82b47472c967f675cad122aed3 (patch)
treed1b3ed987fbf0c28485901cba65dab02b6b81923 /pack-objects.h
parente8d405662fa2e89b850ec79573953e17fea83ed1 (diff)
downloadgit-9c897c5c2ad27d82b47472c967f675cad122aed3.zip
git-9c897c5c2ad27d82b47472c967f675cad122aed3.tar.gz
git-9c897c5c2ad27d82b47472c967f675cad122aed3.tar.bz2
pack-objects: remove #ifdef NO_PTHREADS
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-objects.h')
-rw-r--r--pack-objects.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/pack-objects.h b/pack-objects.h
index 2ca39cf..3a42727 100644
--- a/pack-objects.h
+++ b/pack-objects.h
@@ -145,9 +145,7 @@ struct packing_data {
struct packed_git **in_pack_by_idx;
struct packed_git **in_pack;
-#ifndef NO_PTHREADS
pthread_mutex_t lock;
-#endif
/*
* This list contains entries for bases which we know the other side
@@ -169,15 +167,11 @@ void prepare_packing_data(struct packing_data *pdata);
static inline void packing_data_lock(struct packing_data *pdata)
{
-#ifndef NO_PTHREADS
pthread_mutex_lock(&pdata->lock);
-#endif
}
static inline void packing_data_unlock(struct packing_data *pdata)
{
-#ifndef NO_PTHREADS
pthread_mutex_unlock(&pdata->lock);
-#endif
}
struct object_entry *packlist_alloc(struct packing_data *pdata,