AIThreadSafe* update.
Updated/added documentation. Removed AIThreadSafeWindowsHack that annoyed me (fix your compiler). Don't use 'static' in anonymous namespace. Use the AIThreadSafe*DC variants for default constructed objects, as opposed to the AITHREADSAFE* macro's.
This commit is contained in:
@@ -269,7 +269,7 @@ U8* LLImageBase::allocateDataSize(S32 width, S32 height, S32 ncomponents, S32 si
|
||||
// LLImageRaw
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
AITHREADSAFESIMPLE(S32, LLImageRaw::sGlobalRawMemory, );
|
||||
AIThreadSafeSimpleDC<S32> LLImageRaw::sGlobalRawMemory;
|
||||
S32 LLImageRaw::sRawImageCount = 0;
|
||||
S32 LLImageRaw::sRawImageCachedCount = 0;
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ protected:
|
||||
void setDataAndSize(U8 *data, S32 width, S32 height, S8 components) ;
|
||||
|
||||
public:
|
||||
static AIThreadSafeSimple<S32> sGlobalRawMemory;
|
||||
static AIThreadSafeSimpleDC<S32> sGlobalRawMemory;
|
||||
static S32 sRawImageCount;
|
||||
|
||||
static S32 sRawImageCachedCount;
|
||||
|
||||
Reference in New Issue
Block a user