Make the progress indicator work when the total runtime is unknown.
commitddb51d3baf427a9c38ae1d297eb07daae338536f
authorJohannes Sixt <johannes.sixt@telecom.at>
Tue, 22 May 2007 17:19:33 +0000 (22 19:19 +0200)
committerJohannes Sixt <johannes.sixt@telecom.at>
Thu, 24 May 2007 07:28:07 +0000 (24 09:28 +0200)
treeb739759998bcee3ae0108f3bf6509c06e78c91e5
parenta37c540e0efd1509127587faa6a201e338a0f016
Make the progress indicator work when the total runtime is unknown.

In order to allow progress indication when the total runtime is unknown,
as well as if the total runtime is so long that the progress indicator
stays at the same percentage for more than a second, an update of the
indicator is forced every second.

On Unix a time signal is received, which forces the update.

On Windows we don't have signals. For this reason, a thread is spawned
that forces the update every second.
progress.c