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>
This commit is contained in:
Nguyễn Thái Ngọc Duy
2018-11-03 09:48:46 +01:00
committed by Junio C Hamano
parent e8d405662f
commit 9c897c5c2a
2 changed files with 2 additions and 30 deletions

View File

@ -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,