aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llcommon')
-rw-r--r--linden/indra/llcommon/indra_constants.h11
-rw-r--r--linden/indra/llcommon/llerror.cpp6
-rw-r--r--linden/indra/llcommon/llsecondlifeurls.cpp2
-rw-r--r--linden/indra/llcommon/llthread.cpp10
-rw-r--r--linden/indra/llcommon/llthread.h8
-rw-r--r--linden/indra/llcommon/llversionviewer.h10
6 files changed, 31 insertions, 16 deletions
diff --git a/linden/indra/llcommon/indra_constants.h b/linden/indra/llcommon/indra_constants.h
index 087af6a..e2d48da 100644
--- a/linden/indra/llcommon/indra_constants.h
+++ b/linden/indra/llcommon/indra_constants.h
@@ -77,6 +77,14 @@ enum LAND_STAT_REPORT_TYPE
77 77
78const U32 STAT_FILTER_MASK = 0x1FFFFFFF; 78const U32 STAT_FILTER_MASK = 0x1FFFFFFF;
79 79
80// Region absolute limits
81static const S32 REGION_AGENT_COUNT_MIN = 1;
82static const S32 REGION_AGENT_COUNT_MAX = 200; // Must fit in U8 for the moment (RegionInfo msg)
83static const S32 REGION_PRIM_COUNT_MIN = 0;
84static const S32 REGION_PRIM_COUNT_MAX = 40000;
85static const F32 REGION_PRIM_BONUS_MIN = 1.0;
86static const F32 REGION_PRIM_BONUS_MAX = 10.0;
87
80// Default maximum number of tasks/prims per region. 88// Default maximum number of tasks/prims per region.
81const U32 DEFAULT_MAX_REGION_WIDE_PRIM_COUNT = 15000; 89const U32 DEFAULT_MAX_REGION_WIDE_PRIM_COUNT = 15000;
82 90
@@ -229,10 +237,11 @@ const S32 KEY_COUNT = 256;
229const F32 DEFAULT_WATER_HEIGHT = 20.0f; 237const F32 DEFAULT_WATER_HEIGHT = 20.0f;
230 238
231// Maturity ratings for simulators 239// Maturity ratings for simulators
232const U8 SIM_ACCESS_MIN = 0; 240const U8 SIM_ACCESS_MIN = 0; // Treated as 'unknown', usually ends up being SIM_ACCESS_PG
233const U8 SIM_ACCESS_TRIAL = 7; 241const U8 SIM_ACCESS_TRIAL = 7;
234const U8 SIM_ACCESS_PG = 13; 242const U8 SIM_ACCESS_PG = 13;
235const U8 SIM_ACCESS_MATURE = 21; 243const U8 SIM_ACCESS_MATURE = 21;
244const U8 SIM_ACCESS_ADULT = 42; // Seriously Adult Only
236const U8 SIM_ACCESS_DOWN = 254; 245const U8 SIM_ACCESS_DOWN = 254;
237const U8 SIM_ACCESS_MAX = SIM_ACCESS_MATURE; 246const U8 SIM_ACCESS_MAX = SIM_ACCESS_MATURE;
238 247
diff --git a/linden/indra/llcommon/llerror.cpp b/linden/indra/llcommon/llerror.cpp
index 5d50f3b..cf4b341 100644
--- a/linden/indra/llcommon/llerror.cpp
+++ b/linden/indra/llcommon/llerror.cpp
@@ -902,7 +902,7 @@ namespace {
902 return; 902 return;
903 } 903 }
904 904
905 const int MAX_RETRIES = 5; 905 const int MAX_RETRIES = 10;
906 for (int attempts = 0; attempts < MAX_RETRIES; ++attempts) 906 for (int attempts = 0; attempts < MAX_RETRIES; ++attempts)
907 { 907 {
908 apr_status_t s = apr_thread_mutex_trylock(gLogMutexp); 908 apr_status_t s = apr_thread_mutex_trylock(gLogMutexp);
@@ -914,9 +914,7 @@ namespace {
914 } 914 }
915 915
916 ms_sleep(1); 916 ms_sleep(1);
917 //apr_thread_yield(); 917 apr_thread_yield();
918 // Just yielding won't necessarily work, I had problems with
919 // this on Linux - doug 12/02/04
920 } 918 }
921 919
922 // We're hosed, we can't get the mutex. Blah. 920 // We're hosed, we can't get the mutex. Blah.
diff --git a/linden/indra/llcommon/llsecondlifeurls.cpp b/linden/indra/llcommon/llsecondlifeurls.cpp
index f1ce653..579313c 100644
--- a/linden/indra/llcommon/llsecondlifeurls.cpp
+++ b/linden/indra/llcommon/llsecondlifeurls.cpp
@@ -84,4 +84,4 @@ const std::string SL_KB_URL (
84 "http://secondlife.com/knowledgebase/"); 84 "http://secondlife.com/knowledgebase/");
85 85
86const std::string RELEASE_NOTES_BASE_URL ( 86const std::string RELEASE_NOTES_BASE_URL (
87 "http://secondlife.com/app/releasenotes/"); 87 "http://imprudenceviewer.org/wiki/Release_Notes/");
diff --git a/linden/indra/llcommon/llthread.cpp b/linden/indra/llcommon/llthread.cpp
index b31c9ab..af055a9 100644
--- a/linden/indra/llcommon/llthread.cpp
+++ b/linden/indra/llcommon/llthread.cpp
@@ -84,7 +84,7 @@ void *APR_THREAD_FUNC LLThread::staticRun(apr_thread_t *apr_threadp, void *datap
84 84
85 85
86LLThread::LLThread(const std::string& name, apr_pool_t *poolp) : 86LLThread::LLThread(const std::string& name, apr_pool_t *poolp) :
87 mPaused(FALSE), 87 mPaused(false),
88 mName(name), 88 mName(name),
89 mAPRThreadp(NULL), 89 mAPRThreadp(NULL),
90 mStatus(STOPPED) 90 mStatus(STOPPED)
@@ -92,12 +92,12 @@ LLThread::LLThread(const std::string& name, apr_pool_t *poolp) :
92 // Thread creation probably CAN be paranoid about APR being initialized, if necessary 92 // Thread creation probably CAN be paranoid about APR being initialized, if necessary
93 if (poolp) 93 if (poolp)
94 { 94 {
95 mIsLocalPool = FALSE; 95 mIsLocalPool = false;
96 mAPRPoolp = poolp; 96 mAPRPoolp = poolp;
97 } 97 }
98 else 98 else
99 { 99 {
100 mIsLocalPool = TRUE; 100 mIsLocalPool = true;
101 apr_pool_create(&mAPRPoolp, NULL); // Create a subpool for this thread 101 apr_pool_create(&mAPRPoolp, NULL); // Create a subpool for this thread
102 } 102 }
103 mRunCondition = new LLCondition(mAPRPoolp); 103 mRunCondition = new LLCondition(mAPRPoolp);
@@ -268,12 +268,12 @@ LLMutex::LLMutex(apr_pool_t *poolp) :
268{ 268{
269 //if (poolp) 269 //if (poolp)
270 //{ 270 //{
271 // mIsLocalPool = FALSE; 271 // mIsLocalPool = false;
272 // mAPRPoolp = poolp; 272 // mAPRPoolp = poolp;
273 //} 273 //}
274 //else 274 //else
275 { 275 {
276 mIsLocalPool = TRUE; 276 mIsLocalPool = true;
277 apr_pool_create(&mAPRPoolp, NULL); // Create a subpool for this thread 277 apr_pool_create(&mAPRPoolp, NULL); // Create a subpool for this thread
278 } 278 }
279 apr_thread_mutex_create(&mAPRMutexp, APR_THREAD_MUTEX_UNNESTED, mAPRPoolp); 279 apr_thread_mutex_create(&mAPRMutexp, APR_THREAD_MUTEX_UNNESTED, mAPRPoolp);
diff --git a/linden/indra/llcommon/llthread.h b/linden/indra/llcommon/llthread.h
index 258a43e..036c330 100644
--- a/linden/indra/llcommon/llthread.h
+++ b/linden/indra/llcommon/llthread.h
@@ -67,7 +67,7 @@ public:
67 // Called from MAIN THREAD. 67 // Called from MAIN THREAD.
68 void pause(); 68 void pause();
69 void unpause(); 69 void unpause();
70 bool isPaused() { return isStopped() || mPaused == TRUE; } 70 bool isPaused() { return isStopped() || mPaused; }
71 71
72 // Cause the thread to wake up and check its condition 72 // Cause the thread to wake up and check its condition
73 void wake(); 73 void wake();
@@ -84,7 +84,7 @@ public:
84 apr_pool_t *getAPRPool() { return mAPRPoolp; } 84 apr_pool_t *getAPRPool() { return mAPRPoolp; }
85 85
86private: 86private:
87 BOOL mPaused; 87 bool mPaused;
88 88
89 // static function passed to APR thread creation routine 89 // static function passed to APR thread creation routine
90 static void *APR_THREAD_FUNC staticRun(apr_thread_t *apr_threadp, void *datap); 90 static void *APR_THREAD_FUNC staticRun(apr_thread_t *apr_threadp, void *datap);
@@ -95,7 +95,7 @@ protected:
95 95
96 apr_thread_t *mAPRThreadp; 96 apr_thread_t *mAPRThreadp;
97 apr_pool_t *mAPRPoolp; 97 apr_pool_t *mAPRPoolp;
98 BOOL mIsLocalPool; 98 bool mIsLocalPool;
99 EThreadStatus mStatus; 99 EThreadStatus mStatus;
100 100
101 void setQuitting(); 101 void setQuitting();
@@ -137,7 +137,7 @@ public:
137protected: 137protected:
138 apr_thread_mutex_t *mAPRMutexp; 138 apr_thread_mutex_t *mAPRMutexp;
139 apr_pool_t *mAPRPoolp; 139 apr_pool_t *mAPRPoolp;
140 BOOL mIsLocalPool; 140 bool mIsLocalPool;
141}; 141};
142 142
143// Actually a condition/mutex pair (since each condition needs to be associated with a mutex). 143// Actually a condition/mutex pair (since each condition needs to be associated with a mutex).
diff --git a/linden/indra/llcommon/llversionviewer.h b/linden/indra/llcommon/llversionviewer.h
index 33e5fdc..9c5da12 100644
--- a/linden/indra/llcommon/llversionviewer.h
+++ b/linden/indra/llcommon/llversionviewer.h
@@ -37,6 +37,14 @@ const S32 LL_VERSION_MINOR = 22;
37const S32 LL_VERSION_PATCH = 11; 37const S32 LL_VERSION_PATCH = 11;
38const S32 LL_VERSION_BUILD = 0; 38const S32 LL_VERSION_BUILD = 0;
39 39
40const char * const LL_CHANNEL = "Second Life Release"; 40const char * const LL_CHANNEL = "Imprudence";
41
42const char * const LL_VIEWER_NAME = "Second Life";
43const char * const IMP_VIEWER_NAME = "Imprudence";
44
45const S32 IMP_VERSION_MAJOR = 1;
46const S32 IMP_VERSION_MINOR = 1;
47const S32 IMP_VERSION_PATCH = 0;
48const char * const IMP_VERSION_TEST = "RC2";
41 49
42#endif 50#endif