summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-07-03 21:26:14 +0800
committerErik Kundiman <erik@megapahit.org>2025-07-03 21:26:14 +0800
commit2df6ca5bc3e7931fcdddc57618a6d08547ba411b (patch)
treea126ef5814878704d137aa81c2851414e5d27a40 /indra/newview/llappviewer.cpp
parent9dee269eacd32c48627d3fcc243104a56f021bbc (diff)
parent900516a449c618c87517d295db7f76662e555d00 (diff)
Merge tag 'Second_Life_Project#900516a4-glTF_Mesh_Import' into gltf_mesh_import
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 0f9ee93d56..dc1a7d1dd1 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -5733,6 +5733,27 @@ void LLAppViewer::forceErrorThreadCrash()
thread->start();
}
+void LLAppViewer::forceExceptionThreadCrash()
+{
+ class LLCrashTestThread : public LLThread
+ {
+ public:
+
+ LLCrashTestThread() : LLThread("Crash logging test thread")
+ {
+ }
+
+ void run()
+ {
+ throw std::exception();
+ }
+ };
+
+ LL_WARNS() << "This is a deliberate exception in a thread" << LL_ENDL;
+ LLCrashTestThread* thread = new LLCrashTestThread();
+ thread->start();
+}
+
void LLAppViewer::initMainloopTimeout(std::string_view state, F32 secs)
{
if (!mMainloopTimeout)