[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5140 - GNUnet/src/applications/datastore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5140 - GNUnet/src/applications/datastore |
Date: |
Sun, 24 Jun 2007 17:39:35 -0600 (MDT) |
Author: grothoff
Date: 2007-06-24 17:39:35 -0600 (Sun, 24 Jun 2007)
New Revision: 5140
Modified:
GNUnet/src/applications/datastore/prefetch.c
Log:
check before sleeping
Modified: GNUnet/src/applications/datastore/prefetch.c
===================================================================
--- GNUnet/src/applications/datastore/prefetch.c 2007-06-24 10:04:59 UTC
(rev 5139)
+++ GNUnet/src/applications/datastore/prefetch.c 2007-06-24 23:39:35 UTC
(rev 5140)
@@ -174,7 +174,8 @@
load = 10; /* never sleep less than 500 ms */
if (load > 100)
load = 100; /* never sleep longer than 5 seconds */
- PTHREAD_SLEEP(50 * cronMILLIS * load);
+ if (doneSignal == NO)
+ PTHREAD_SLEEP(50 * cronMILLIS * load);
}
return NULL;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5140 - GNUnet/src/applications/datastore,
gnunet <=