summaryrefslogtreecommitdiff
path: root/parallel-checkout.h
diff options
context:
space:
mode:
authorMatheus Tavares <matheus.bernardino@usp.br>2021-04-19 00:14:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-04-19 18:57:05 (GMT)
commit1c4d6f46be8dc05c9a49379587ffd454e92b72cf (patch)
tree940731bcc592e24c773c02ddc6d6ffc3324b5d38 /parallel-checkout.h
parent7531e4b66e8c175707b6915df10666fbb5b7859f (diff)
downloadgit-1c4d6f46be8dc05c9a49379587ffd454e92b72cf.zip
git-1c4d6f46be8dc05c9a49379587ffd454e92b72cf.tar.gz
git-1c4d6f46be8dc05c9a49379587ffd454e92b72cf.tar.bz2
parallel-checkout: support progress displaying
Original-patch-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parallel-checkout.h')
-rw-r--r--parallel-checkout.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/parallel-checkout.h b/parallel-checkout.h
index 2a68ab9..80f539b 100644
--- a/parallel-checkout.h
+++ b/parallel-checkout.h
@@ -5,6 +5,7 @@
struct cache_entry;
struct checkout;
+struct progress;
/****************************************************************
* Users of parallel checkout
@@ -31,13 +32,15 @@ void init_parallel_checkout(void);
* for later write and return 0.
*/
int enqueue_checkout(struct cache_entry *ce, struct conv_attrs *ca);
+size_t pc_queue_size(void);
/*
* Write all the queued entries, returning 0 on success. If the number of
* entries is smaller than the specified threshold, the operation is performed
* sequentially.
*/
-int run_parallel_checkout(struct checkout *state, int num_workers, int threshold);
+int run_parallel_checkout(struct checkout *state, int num_workers, int threshold,
+ struct progress *progress, unsigned int *progress_cnt);
/****************************************************************
* Interface with checkout--worker