From f042e95a1c66adff282759b259ee029901904ebd Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Mon, 6 Apr 2009 18:14:26 -0500 Subject: Made LogLock mutex less likely to fail, hopefully. --- linden/indra/llcommon/llerror.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'linden/indra/llcommon') diff --git a/linden/indra/llcommon/llerror.cpp b/linden/indra/llcommon/llerror.cpp index 5c7c3cd..b95b325 100644 --- a/linden/indra/llcommon/llerror.cpp +++ b/linden/indra/llcommon/llerror.cpp @@ -902,7 +902,7 @@ namespace { return; } - const int MAX_RETRIES = 5; + const int MAX_RETRIES = 10; for (int attempts = 0; attempts < MAX_RETRIES; ++attempts) { apr_status_t s = apr_thread_mutex_trylock(gLogMutexp); @@ -914,9 +914,7 @@ namespace { } ms_sleep(1); - //apr_thread_yield(); - // Just yielding won't necessarily work, I had problems with - // this on Linux - doug 12/02/04 + apr_thread_yield(); } // We're hosed, we can't get the mutex. Blah. -- cgit v1.1