]> source.dussan.org Git - jgit.git/commit
Allow PackWriter callers to manage the thread pool 87/1187/1
authorShawn O. Pearce <spearce@spearce.org>
Wed, 28 Jul 2010 02:32:13 +0000 (19:32 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 28 Jul 2010 17:50:28 +0000 (10:50 -0700)
commit1b783d037091266b035e1727db6b6ce7a397ef63
treeeb43f60b2b57a7814a0b50db41a7ad5cae63a6f9
parent21f76c2a69836ec618c82eb9305656dcec70befb
Allow PackWriter callers to manage the thread pool

By permitting the caller of PackWriter to select the Executor it
uses for task execution, we give the caller the ability to manage
the lifecycle of the thread pool, including reusing it across
concurrent pack generators.

This is the first step to supporting application thread pools
within Daemon or another managed service like Gerrit Code Review.

Change-Id: I96bee7b9c30ff9885f2bd261d0b6daaac713b5a4
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaTask.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java