# HG changeset patch # User reimar # Date 1345993954 0 # Node ID a11919e5118714799dc548240b2a2a25dc363bff # Parent 60c7713b1061273c3f09a30d66007a2f56b1127e Avoid sleeping 0 ms, this can cause sleep to be not called at all. This will then cause long hangs e.g. when sleeping on single-CPU/core computers. Should fix bug #2084. Patch suggested by Visenri [visenri yahoo es] diff -r 60c7713b1061 -r a11919e51187 stream/cache2.c --- a/stream/cache2.c Sat Aug 25 10:52:00 2012 +0000 +++ b/stream/cache2.c Sun Aug 26 15:12:34 2012 +0000 @@ -29,7 +29,7 @@ #define INITIAL_FILL_USLEEP_COUNT 10 #define FILL_USLEEP_TIME 50000 #define PREFILL_SLEEP_TIME 200 -#define CONTROL_SLEEP_TIME 0 +#define CONTROL_SLEEP_TIME 1 #include #include