jgit/org.eclipse.jgit
Shawn O. Pearce 68ab451d39 ProgressMonitor: Refactor to use background alarms
Instead of polling the system clock on every update(1) method call,
use a scheduled executor to toggle a volatile once per second until
the task is done.  Check the volatile on each update(int), looking
to see if output should occur.

This limits progress output to either once per 1% complete, or once
per second.  To save time during update calls the timer isn't reset
during each 1% of output, which means we may see one unnecessary
output trigger if at least 1% completed during the one second of the
alarm time.

Change-Id: I8fdd7e31c37bef39a5d1b3da7105da0ef879eb84
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2011-02-28 19:36:56 -08:00
..
.settings Run formatter on edited lines via save action 2010-08-26 12:33:09 -05:00
META-INF daemon: Use HTTP's resolver and factory pattern 2011-02-14 18:28:21 -08:00
findBugs [findbugs] Do not ignore exceptional return value of mkdir 2011-01-28 01:11:12 +01:00
resources/org/eclipse/jgit Add git-reset to the Git API 2011-02-17 10:28:26 -06:00
src/org/eclipse/jgit ProgressMonitor: Refactor to use background alarms 2011-02-28 19:36:56 -08:00
.classpath Externalize strings from JGit 2010-05-19 14:37:16 -07:00
.fbprefs Initial JGit contribution to eclipse.org 2009-09-29 16:47:03 -07:00
.gitignore Finish removing Apache Felix maven-bundle-plugin 2010-01-12 11:46:55 -08:00
.project Revert "Hide Maven target directories from Eclipse" 2010-08-28 09:50:50 +02:00
about.html Adding some Eclipse-related legal files to JGit 2010-02-03 15:18:06 -06:00
build.properties Add "resources/" as a source folder 2010-06-05 14:39:27 +02:00
plugin.properties Cleaning up provider and feature names 2010-04-27 09:26:25 -05:00
pom.xml Fix formatting of pom.xml 2011-02-24 16:04:33 +01:00