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 builds
master
Richard Linden 2013-05-29 17:02:27 -07:00
parent 9ae76d1215
commit 074c1f1de4
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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)
{