]> source.dussan.org Git - jgit.git/commit
StreamCopyThread: flush cannot interrupt a write 45/84945/2
authorJonathan Nieder <jrn@google.com>
Sun, 13 Nov 2016 21:26:33 +0000 (13:26 -0800)
committerJonathan Nieder <jrn@google.com>
Sun, 13 Nov 2016 21:35:16 +0000 (13:35 -0800)
commit96941550deb5c3029b16259044dc95ed50170288
treeef0d684bc9fe53b270dc3b4140573fd1b6f1a25c
parent97f3baa0d3df7ed26a55b2240cc5ce1a04861a4c
StreamCopyThread: flush cannot interrupt a write

Because flush calls interrupt with writeLock held, it cannot interrupt
a write.  Simplify by no longer defending against that.

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