]> source.dussan.org Git - jgit.git/commit
StreamCopyThread: Remove unnecessary flushCount 44/84944/1
authorJonathan Nieder <jrn@google.com>
Sun, 13 Nov 2016 21:16:48 +0000 (13:16 -0800)
committerJonathan Nieder <jrn@google.com>
Sun, 13 Nov 2016 21:32:08 +0000 (13:32 -0800)
commit97f3baa0d3df7ed26a55b2240cc5ce1a04861a4c
tree1e0f9dd2743d2fb364b3c62ee3653828ac6e95df
parent6aa126ec427c1beba49143aceb712e04b3f2aea6
StreamCopyThread: Remove unnecessary flushCount

StreamCopyThread#run consistently interrupts itself whenever it
discovers it has been interrupted by StreamCopyThread#flush while not
reading.  The flushCount is not needed to avoid lost flushes.

All in-tree users of StreamCopyThread never flush.  As a nice side
benefit, this avoids the expense of atomic operations that have no
purpose for those users.

Change-Id: I1afe415cd09a67f1891c3baf712a9003ad553062
org.eclipse.jgit/src/org/eclipse/jgit/util/io/StreamCopyThread.java