Wrap sGlobalRawMemory in AIThreadSafe.
This is accessed by different threads. Other globals like it might also be accessed by different threads, this has to be investigated.
This commit is contained in:
committed by
Siana Gearz
parent
a43f1ee299
commit
3bde58d970
@@ -37,6 +37,7 @@
|
||||
#include "llstring.h"
|
||||
#include "llmemory.h"
|
||||
#include "llthread.h"
|
||||
#include "aithreadsafe.h"
|
||||
|
||||
const S32 MIN_IMAGE_MIP = 2; // 4x4, only used for expand/contract power of 2
|
||||
const S32 MAX_IMAGE_MIP = 11; // 2048x2048
|
||||
@@ -241,7 +242,7 @@ protected:
|
||||
void setDataAndSize(U8 *data, S32 width, S32 height, S8 components) ;
|
||||
|
||||
public:
|
||||
static S32 sGlobalRawMemory;
|
||||
static AIThreadSafeSimple<S32> sGlobalRawMemory;
|
||||
static S32 sRawImageCount;
|
||||
|
||||
static S32 sRawImageCachedCount;
|
||||
|
||||
Reference in New Issue
Block a user