summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/_httpservice.cpp
diff options
context:
space:
mode:
authorMonty Brandenberg <monty@lindenlab.com>2012-06-05 12:06:42 -0400
committerMonty Brandenberg <monty@lindenlab.com>2012-06-05 12:06:42 -0400
commit9a11a2946f4dec334ce1ac449b355ba16eaae23a (patch)
tree501a7976e9dd81245535c858f11e894a4a9de14b /indra/llcorehttp/_httpservice.cpp
parent3a9c182d7fe3fdacf5923e3b1b51456472e60bb1 (diff)
Faster spin in worker thread when doing I/O and a priority bump needed when fixing priorities.
Diffstat (limited to 'indra/llcorehttp/_httpservice.cpp')
-rw-r--r--indra/llcorehttp/_httpservice.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llcorehttp/_httpservice.cpp b/indra/llcorehttp/_httpservice.cpp
index 337493ca12..b038bdb720 100644
--- a/indra/llcorehttp/_httpservice.cpp
+++ b/indra/llcorehttp/_httpservice.cpp
@@ -38,6 +38,10 @@
#include "lltimer.h"
+// Tuning parameters
+static const int LOOP_SLEEP_NORMAL_MS = 10; // Normal per-loop sleep in milliseconds
+
+
namespace LLCore
{
@@ -198,7 +202,7 @@ void HttpService::threadRun(LLCoreInt::HttpThread * thread)
// Determine whether to spin, sleep briefly or sleep for next request
if (REQUEST_SLEEP != loop)
{
- ms_sleep(50);
+ ms_sleep(LOOP_SLEEP_NORMAL_MS);
}
}