SH-3931 WIP Interesting: Add graphs to visualize scene load metrics
made LLCopyOnWritePointer enforce write access through write() again disabled some error checking on release for download buildsmaster
parent
9ae76d1215
commit
074c1f1de4
|
|
@ -196,6 +196,9 @@ public:
|
|||
*(pointer_t*)(this) = new Type(*pointer_t::mPointer);
|
||||
}
|
||||
}
|
||||
|
||||
const Type* operator->() const { return pointer_t::mPointer; }
|
||||
const Type& operator*() const { return *pointer_t::mPointer; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -175,10 +175,12 @@ public:
|
|||
// NOTE: this is not thread-safe. We assume that slots are reserved in the main thread before any child threads are spawned
|
||||
size_t reserveSlot()
|
||||
{
|
||||
#ifndef LL_RELEASE_FOR_DOWNLOAD
|
||||
if (LLTrace::isInitialized())
|
||||
{
|
||||
llerrs << "Attempting to declare trace object after program initialization. Trace objects should be statically initialized." << llendl;
|
||||
}
|
||||
#endif
|
||||
size_t next_slot = sNextStorageSlot++;
|
||||
if (next_slot >= mStorageSize)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue