Merge in changes to avoid a few potential problems with LLUUID when accessed from multiple threads.

This commit is contained in:
Shyotl
2013-02-12 15:02:17 -06:00
parent b901e57c55
commit 1eb142535c
2 changed files with 30 additions and 9 deletions

View File

@@ -31,6 +31,8 @@
#include "stdtypes.h"
#include "llpreprocessor.h"
class LLMutex;
const S32 UUID_BYTES = 16;
const S32 UUID_WORDS = 4;
const S32 UUID_STR_LENGTH = 37; // actually wrong, should be 36 and use size below
@@ -118,6 +120,7 @@ public:
static BOOL validate(const std::string& in_string); // Validate that the UUID string is legal.
static const LLUUID null;
static LLMutex * mMutex;
static U32 getRandomSeed();
static S32 getNodeID(unsigned char * node_id);