changeset 35025:a11919e51187

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]
author reimar
date Sun, 26 Aug 2012 15:12:34 +0000
parents 60c7713b1061
children 4783ed655c94
files stream/cache2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <stdio.h>
 #include <stdlib.h>